Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding external JARs

 
Paras Ahuja
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 20894
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic