aspose file tools*
The moose likes Beginning Java and the fly likes Adding a package to the standard liberary Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Adding a package to the standard liberary" Watch "Adding a package to the standard liberary" New topic
Author

Adding a package to the standard liberary

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hello,
Could you please tell me how to add a package to the standard liberary. I downloaded a package from JFreeChart.
They Have so many usefull class. Could you please tell me how to add that package.
Thanks in advance...


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24185
    
  34

You don't "add things to the standard library," period.
You can either 1) add the .jar file from this library to your CLASSPATH environment variable, or 2) if the instructions for the library say it's OK (or at least, don't say it's NOT ok) you can put the .jar file in ${JDK_HOME}/lib/ext . #1 is customary. #2 often causes problems that aren't immediately evident.


[Jess in Action][AskingGoodQuestions]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Ransika, you must go back to the JFreeChart web site and load down the documentation. In the PDF file you will find a section on unpacking and installing the JFreeChart package.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
 
subject: Adding a package to the standard liberary