?: 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
29 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,190 points
169 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,070 points
1,170 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
387 views
0 votes
1 answer
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 in Data Analytics by sindhu
21 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 25 in Data Analytics by anonymous
• 32,260 points
20 views
+1 vote
1 answer

Why data cleaning plays a vital role in the analysis?

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

answered Nov 22 in Data Analytics by Keshav
50 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
68 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
35 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
75 views