can't install JFreechart

Reply

Join Date: Jun 2009
Posts: 28
Reputation: anusha88 is an unknown quantity at this point 
Solved Threads: 0
anusha88 anusha88 is offline Offline
Light Poster

can't install JFreechart

 
0
  #1
Jun 23rd, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 28
Reputation: anusha88 is an unknown quantity at this point 
Solved Threads: 0
anusha88 anusha88 is offline Offline
Light Poster

Re: can't install JFreechart

 
0
  #2
Jun 23rd, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,429
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 436
adatapost's Avatar
adatapost adatapost is offline Offline
Nearly a Posting Maven

Re: can't install JFreechart

 
0
  #3
Jun 23rd, 2009
Did you download common lib along with jfreechart?
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 28
Reputation: anusha88 is an unknown quantity at this point 
Solved Threads: 0
anusha88 anusha88 is offline Offline
Light Poster

Re: can't install JFreechart

 
0
  #4
Jul 2nd, 2009
no,i havn't.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 28
Reputation: anusha88 is an unknown quantity at this point 
Solved Threads: 0
anusha88 anusha88 is offline Offline
Light Poster

Re: can't install JFreechart

 
0
  #5
Jul 2nd, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 53
Reputation: di2daer is an unknown quantity at this point 
Solved Threads: 12
di2daer's Avatar
di2daer di2daer is offline Offline
Junior Poster in Training

Re: can't install JFreechart

 
0
  #6
Jul 2nd, 2009
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.
---------------------------
333 - halfway to hell
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 28
Reputation: anusha88 is an unknown quantity at this point 
Solved Threads: 0
anusha88 anusha88 is offline Offline
Light Poster

Re: can't install JFreechart

 
0
  #7
Jul 2nd, 2009
no,im not using eclipse or net beans.how to go about then?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 53
Reputation: di2daer is an unknown quantity at this point 
Solved Threads: 12
di2daer's Avatar
di2daer di2daer is offline Offline
Junior Poster in Training

Re: can't install JFreechart

 
0
  #8
Jul 2nd, 2009
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.
---------------------------
333 - halfway to hell
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 28
Reputation: anusha88 is an unknown quantity at this point 
Solved Threads: 0
anusha88 anusha88 is offline Offline
Light Poster

Re: can't install JFreechart

 
0
  #9
Jul 2nd, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 53
Reputation: di2daer is an unknown quantity at this point 
Solved Threads: 12
di2daer's Avatar
di2daer di2daer is offline Offline
Junior Poster in Training

Re: can't install JFreechart

 
0
  #10
Jul 2nd, 2009
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
---------------------------
333 - halfway to hell
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC