Question: Where Should I Put Jar Files in 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)...
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). Another good choice would be inside /usr/local, only if this app of yours is host specific.
Where do I put .jar files?
The best way is to add the jar to your project is as follows:
- Create a folder called lib in your project folder.
- copy all the jar files you need to this folder .
- Refresh your project in eclipse.
- Select all the jar files, then right click on one of them and select Build Path -> Add to Build Path.
Must Read
How do I run a .jar file in Linux?
Show activity on this post.
- Open a command prompt with CTRL + ALT + T.
- Go to your “.jar” file directory. If your Ubuntu version / flavour supports it, you should be able to right click on your “.jar” file’s directory and click “Open in Terminal”
- Type the following command: java -jar jarfilename.jar.
6 февр. 2012 г.