Where to place jar files
I have been trying to run a stand alone java application from commannd prompt. But it reports error since certain jars which are required by the program were not resolved by the compiler.So, kindly let me know where exactly the jar files should be placed.
Anywhere you want to, so long as they are referenced on the classpath.
You can store them anywhere you want as long as you mention them (with a full path name) in your classpath list. There is one exception: if you store them in your lib/ext sub directory of your JRE installation directory you don't have to metion them any further, i.e. that directory is checked for .jar files and .class files when it starts up (but better not to store anything there without exactly knowing what you're doing).
Originally Posted by rummy
A lot of people create a "lib" folder off the project root folder and put their JAR files in there. It's just a convention, but it's a good idea. You have to list each JAR file on the classpath. If you are working from the command line, I suggest using batch files so you don't have to retype everything over and over. Also, an IDE such as NetBeans or Eclipse will save you a lot of work.