Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding a package to the standard liberary

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic