question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Java project: Import all jar in folder

See original GitHub issue

I would like to import all jar files into my vscode project classpath. If I do this it works, but only for one library of course:

In my case I have almost 100 .jar files to import. If I put them in lib and put try this: <classpathentry kind="lib" path="lib"/>

Or this:

<classpathentry kind="lib" path="lib/*.jar"/>

Or this

<classpathentry kind="lib" path="lib/*"/>

Do not work

I also tried putting with changing the settings this way:

"java.project.referencedLibraries": [
   "lib/mylib/*.jar"
 ]

But it doesnt work either Any idea?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
carlitadorcommented, Jan 23, 2020

Hmm, the folder structure looks fine to me. Not sure what’s wrong happening thinking

@testforstephen Do you have any idea?

Hi jdneo, Seemed to be a problem with my JDK on Linux Mint. Just installed JDK 13 and it works fines now. Sorry for that Cheers

0reactions
jdneocommented, Jan 21, 2020

Hmm, the folder structure looks fine to me. Not sure what’s wrong happening 🤔

@testforstephen Do you have any idea?

Read more comments on GitHub >

github_iconTop Results From Across the Web

vscode classpath: Import all jar in folder - java - Stack Overflow
Start from Language Support for Java@0.55.0,you could add new setting java.project.referencedLibraries to config the project classpaths.
Read more >
Importing and Exporting Java Projects as JAR Files in Eclipse
1. Start Eclipse and navigate to your workspace. · 2. In Package Explorer, left-click on the project you want to export. · 3....
Read more >
How to import a jar file in Eclipse - JanBask Training
To add or import a jar files in your Eclipse IDE, follow the steps given below. Right click on your project; Select Build...
Read more >
Java: JAR file | I'd Rather Be Writing Blog - Idratherbewriting.com
After you create a Java project, create a new folder by going to File > New > Folder. Call it “lib”. Then import...
Read more >
How to Add JARs to Project Build Paths in Eclipse (Java)
1. Create a new folder named lib in your project folder. This stands for "libraries" and will contain all the JARs you'll be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found