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 in Java by Boopathy
• 180 points
61 views

1 answer to this question.

0 votes

Hey, @Boopathy,

Which command do you use to run the jar?

answered Oct 27 by Gitika
• 48,320 points

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
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,890 points
2,613 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,890 points
790 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,630 points
3,401 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,630 points
266 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,890 points
2,366 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,890 points
3,147 views
0 votes
1 answer

How to include SQLite database in executable Jar?

Hello @kartik, I have found two different ways ...READ MORE

answered May 7 in Java by Niroj
• 76,540 points
547 views
0 votes
1 answer

java path not found in window 7

Hey, You can follow these few steps: From the ...READ MORE

answered Apr 3 in Java by Gitika
• 48,320 points
112 views
0 votes
1 answer

What Kind of Files IOC Container can Read other than XML directly or Indirectly?

Hi, @Ferry, The configuration metadata is nothing but bean ...READ MORE

answered Apr 23 in Java by Gitika
• 48,320 points
145 views