?: 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 17, 2017 in Data Analytics by Learner
15 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 17, 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 13, 2018 in Data Analytics by darklord
• 6,140 points
87 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,020 points
885 views
0 votes
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,040 points
192 views
0 votes
1 answer
0 votes
0 answers

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

How to export the updated or manipulated ...READ MORE

Aug 5 in Data Analytics by karthick
8 views
0 votes
0 answers

Summarize only number or integer columns in the dataframe.

How to summarize only number or integer ...READ MORE

Aug 5 in Data Analytics by payal
8 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
43 views
0 votes
1 answer

Executing the pig commands

Dear Narayana, Hope you are doing great. Yes you ...READ MORE

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

Shut down the VM and restarted

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

answered Dec 17, 2017 in Data Analytics by Sudhir
• 1,610 points
26 views
+1 vote
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 17, 2017 in Data Analytics by Sudhir
• 1,610 points
46 views