This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Adding external JARs Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Adding external JARs" Watch "Adding external JARs" New topic
Author

Adding external JARs

Paras Ahuja
Ranch Hand

Joined: May 22, 2012
Posts: 62
Hi everyone,
I know how to add external JAR files in Eclipse. But what if i want to run the program using cmd?
How should i add external JAR files (in my case, Apache POI JAR files) so that JVM detects it and does not show error.
Please help...
Thanks in advance..
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 16695
    
  19

Paras Ahuja wrote:Hi everyone,
I know how to add external JAR files in Eclipse. But what if i want to run the program using cmd?
How should i add external JAR files (in my case, Apache POI JAR files) so that JVM detects it and does not show error.
Please help...
Thanks in advance..


Jar files needed by the JVM (and even by the compiler) should be specified as part of the classpath.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Adding external JARs
 
Similar Threads
Adding an external jar file library in Netbeans 6.5.1 IDE
Adding external libraries on J2MEWTK
eclipse tomcat external jar
Adding files to jar
Imported JAR files missing,Urgent Urgent Urgent..........