The only Run as choice Run Configurations Why

0 votes

'Hello. I am trying to learn how to take a screenshot (needed for one of the Module 4 assignments). I copied the attached code from a Selenium tutorial website, modified it as necessary to reference locations on my laptop, and then tried to select 'Run as Java Application'.

Problem: when I do a right click, 'Run as...', the only choice is 'Run Configurations...'. I don't know how to get the 'Java Application' choice.

Help will be appreciated. Thank you.'

Note : Screen-shot attached

Dec 18, 2017 in Data Analytics by Learner
149 views

1 answer to this question.

0 votes

Dear Learner,

Greetings !

The issue which you are facing is because the main function is not present in your code. Please give the main class as shown below:

public static void main(String[] args) throws Exception {

Please find the attached modified code, try to run it and let us know if you face any issue.

We will wait for your response.

Note : Screen-shot attached, (code)

answered Dec 18, 2017 by Sudhir
• 1,610 points

Related Questions In Data Analytics

0 votes
1 answer

Save a plot as image on the disk using R

Consider for both the situations: 1. Image will ...READ MORE

answered Apr 14, 2018 in Data Analytics by Sahiti
• 6,360 points
1,110 views
0 votes
1 answer

Plot two variables as lines on the same graph using ggplot

If you have small number of variables, ...READ MORE

answered Apr 17, 2018 in Data Analytics by kappa3010
• 2,090 points
3,710 views
+1 vote
1 answer

Error saying "'names' attribute [27] must be the same length as the vector [21]"

When you end up with this error ...READ MORE

answered Nov 12, 2018 in Data Analytics by Maverick
• 10,840 points
3,076 views
0 votes
1 answer

display the output r code as title in R script Rmarkdown script to html page

Use the file input from parameter and ...READ MORE

answered Jul 31, 2019 in Data Analytics by anonymous
646 views
0 votes
1 answer

Export the updated or manipulated dataframe or result as csv and excel file

Hi, Karthik. Check it out how to write ...READ MORE

answered Sep 10, 2019 in Data Analytics by sindhu
148 views
0 votes
1 answer

Summarize only number or integer columns in the dataframe.

Hi, Payal. Use the below function. data frame %>% ...READ MORE

answered Aug 26, 2019 in Data Analytics by anonymous
• 33,010 points
158 views
+2 votes
1 answer

Why data cleaning plays a vital role in the analysis?

Data cleaning is the fourth step in ...READ MORE

answered Nov 22, 2019 in Data Analytics by Keshav
733 views
0 votes
1 answer

How to Share the files from local system Mac Book to Edureka VM

Hey Satya, Hope you're doing great. Would you please ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
284 views
0 votes
1 answer

Shut down the VM and restarted

Dear Raghu, Please let us know are you ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
194 views
+2 votes
1 answer

Need a hadoop engine in backend to run r server

Dear Koushik, Hope you are doing great. The hadoop ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
290 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP