This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes where to put jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "where to put jar" Watch "where to put jar" New topic
Author

where to put jar

Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
I have a question on where to put jar that we need to use. I heard that in jdk1.3, you don't have to explicitly put the jar in classpath but just in jdk1.3\jre\lib is enough. Is that the case usually? Why doesn't it work for me then?
Please help.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Put them in the jdk1.3\jre\lib\ext\ directory .

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
matt hooker
Ranch Hand

Joined: Jul 26, 2001
Posts: 46
Hi Cameron.
It is correct that you may use the jdk1.3/jre/lib/ext directory - this will install the JAR as an 'installed extension'. However, this is not the way that Sun meant this feature to be used. This is for standard extensions to the Java API and not for 'user code'. Believe me, it will cause you problems in the future. It is ALWAYS best to explicitly specify required classes in the classpath. Where possible this should be a 'runtime_independant' classpath too, and not the system classpath. Just build a batch file that sets this before running your code.
Cheers,
Matt.

Its not what you do, its the way you say you've done it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where to put jar