Where Do I Put Jar Files Linux?
Contents If You Are Using the Packing System, Then a Good Choice Is Indeed /Usr/Share/Java/ or /Usr/Lib (If Your App Is Called from /Usr/Bin or /Usr/Sbin)...
IF you are using the packing system, then a good choice is indeed /usr/share/java/ or /usr/lib (if your app is called from /usr/bin or /usr/sbin). Another good choice would be inside /usr/local, only if this app of yours is host specific.
Where should I put jar files?
9 Answers. If you’re wanting to include a JAR file to your Eclipse project, you would generally create a ‘lib’ folder inside the project folder, and put the file in there. You then need to tell eclipse to include it in your class path so your code will compile and run inside eclipse.
Must Read
How do I import a jar file in Linux?
Check your CLASSPATH. Make sure it points to all JAR files in the directory. This should be specified by either a direct path to the your JAR, or a wildcard. Based on your comments, I’m going to assume that you have a script to construct the classpath from the files in the “lib” directory.