Could not include JAR files

0 votes

I have included  My java JAR files but I could not import my JAR files on coding

It shows error occured

Oct 27, 2020 in Java by Boopathy
• 370 points
1,862 views

1 answer to this question.

0 votes
Best answer

Hey, @Boopathy,

Which command do you use to run the jar?

answered Oct 27, 2020 by Gitika
• 65,770 points

selected Nov 29, 2020 by Boopathy

I need to run a TakeScreenShot method. when type a coding it shows all errors like exactly below:

Hey, @Boopathy,

Could you please post all your error logs here? So that it will be easy for us to resolve your query ASAP!!!
This are all the error logs here

System cannot be resolved

The method get(String) from the type WebDriver refers to the missing type String

The method xpath(String) from the type By refers to the missing type String

The method sendKeys(CharSequence...) from the type WebElement refers to the missing type CharSequence

The method xpath(String) from the type By refers to the missing type String

The method sendKeys(CharSequence...) from the type WebElement refers to the missing type CharSequence

The method xpath(String) from the type By refers to the missing type String

Hey @ Boopathy,

The solution to the above problem is, change the JRE system library by doing the following:

  1. Right-click on your project and select properties.
  2. Select Libraries from the tab.
  3. Select the current JRE system library and click on edit.
  4. Select either Alternate JRE or Workspace default JRE (Latest version of JRE).
  5. Click Finish and then OK.
Error fixed it.. Thanks
Hello, @Boopathy,

Glad that the solution given above has helped you!!! Do post your query on any technology with the Edureka community!!

Related Questions In Java

0 votes
0 answers

I have Added all External JAR files but driver not found exception occured

Exception in thread "main" java.lang.Error: Unresolved compilation ...READ MORE

Nov 29, 2020 in Java by Boopathy
• 370 points
917 views
0 votes
2 answers

“Could not find or load main class” mean?

Use the final modifier to enforce good initialization. Avoid returning ...READ MORE

answered Sep 18, 2018 in Java by Sushmita
• 6,920 points
4,516 views
0 votes
2 answers

How can I get the filenames of all files in a folder which may or may not contain duplicates

List<String> results = new ArrayList<String>(); File[] files = ...READ MORE

answered Sep 12, 2018 in Java by Sushmita
• 6,920 points
1,910 views
0 votes
1 answer

How to resolve the error: could not find or load main class?

If you are getting error: could not ...READ MORE

answered May 28, 2018 in Java by Parth
• 4,640 points
11,431 views
0 votes
1 answer

How to run the JAR files in windows?

Following are the steps to run the ...READ MORE

answered May 28, 2018 in Java by Parth
• 4,640 points
1,141 views
0 votes
2 answers

How can we add the local JAR files to the Maven Project in Java?

Firstly I would like to give credit ...READ MORE

answered Nov 5, 2018 in Java by Sushmita
• 6,920 points
11,791 views
0 votes
1 answer

Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved

Check the maven repository server is up. Check ...READ MORE

answered Jun 25, 2018 in Java by Sushmita
• 6,920 points
5,903 views
0 votes
1 answer

What does “Could not find or load main class” mean?

First of all, you need to understand ...READ MORE

answered Dec 22, 2020 in Java by Gitika
• 65,770 points
1,255 views
+5 votes
11 answers

How to import a jar file in Eclipse?

Click on File > Import. The Import ...READ MORE

answered Aug 23, 2018 in Java by Daisy
• 8,140 points
359,778 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