Win a copy of Functional Reactive Programming this week in the Other Languages 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: 21511
84
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