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
540 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,570 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,370 points
2,146 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
5,056 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
4,099 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
1,399 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
537 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,030 points
659 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
1,475 views
0 votes
1 answer

why the predict() function does have different rows in R

Alter this sentence: model = lm(train$latitude train$crashes) to lm(crashes ...READ MORE

answered Jun 24, 2022 in Data Analytics by Sohail
• 3,040 points
803 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,570 points
889 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,570 points
872 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP