DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   can't install JFreechart (http://www.daniweb.com/forums/thread199227.html)

anusha88 Jun 23rd, 2009 7:33 am
can't install JFreechart
 
i need to install JfreeChart but I can't understand much of what the installation manual says.

Which folder should you extract the Jfreechart files.How to change the classpath etc?

I can't seem to understand.terribly stuck!!can anyone please help

anusha88 Jun 23rd, 2009 7:41 am
Re: can't install JFreechart
 
i have extracted the file using -xvf command.
But whenevr i try to run the demo using
java -jar jfreechart-1.0.13-demo.jar

it says "unable to access file.".also i can't understand ant compile command.can someone tell me the easiest way to install JFreechart

adatapost Jun 23rd, 2009 1:06 pm
Re: can't install JFreechart
 
Did you download common lib along with jfreechart?

anusha88 Jul 2nd, 2009 2:37 am
Re: can't install JFreechart
 
no,i havn't.

anusha88 Jul 2nd, 2009 3:48 am
Re: can't install JFreechart
 
I have downloaded Jcommon now.Though it said installing Jcommon wasd optional.But i still face the same problem.

Please help.I'm badly stuck.

di2daer Jul 2nd, 2009 4:21 am
Re: can't install JFreechart
 
If you're using eclipse you can choose to add them as external jars.
Right click the project and select build path-> configure build path -> (Libraries tab) add external jars.

anusha88 Jul 2nd, 2009 4:31 am
Re: can't install JFreechart
 
no,im not using eclipse or net beans.how to go about then?

di2daer Jul 2nd, 2009 5:17 am
Re: can't install JFreechart
 
Do you use any editor?
If you're running in cmd prompt I think you need to include the location of the jars when you run it, like: java -classpath C:\jfreechart\jfreechart.jar yourApp.java
You can also create a batch script to run it, then you won't have to specify the paths all the time.

anusha88 Jul 2nd, 2009 6:38 am
Re: can't install JFreechart
 
i have set the classpath using path in environment variable.and also tried

javac -classpath C:\Documents and Settings\Administrator\jfreechart-1.0.13\lib\jfreechart-1.013.jar myapplication.java

but the compiler still does not recognise jfreechart.

What should i do?

di2daer Jul 2nd, 2009 8:08 am
Re: can't install JFreechart
 
Surron the path with "" and try again.
If that doesn't work, make sure you have all the dependencies included, separate them with ';'

This works for me:
C:\java\Playground\src> javac -classpath C:\jars\jfreechart-1.0.
12.jar;C:\jars\jcommon-1.0.15.jar DrawGraph.java


All times are GMT -4. The time now is 2:37 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC