wood burning stoves*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Adding a package to the standard liberary" Watch "Adding a package to the standard liberary" New topic

Adding a package to the standard liberary

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
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

Joined: Jul 08, 2003
Posts: 24183

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Adding a package to the standard liberary
Similar Threads
org.apache.jasper.JasperException: Unable to compile class for JSP
doubt in files and Directories
External Package
problem /exceptions in sending a mail using JavaMail
Error In Executing A File in JAVA