943,919 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2359
  • Java RSS
You are currently viewing page 1 of this multi-page discussion thread
Jun 23rd, 2009
0

can't install JFreechart

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
anusha88 is offline Offline
28 posts
since Jun 2009
Jun 23rd, 2009
0

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
Reputation Points: 10
Solved Threads: 0
Light Poster
anusha88 is offline Offline
28 posts
since Jun 2009
Jun 23rd, 2009
0

Re: can't install JFreechart

Did you download common lib along with jfreechart?
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Jul 2nd, 2009
0

Re: can't install JFreechart

no,i havn't.
Reputation Points: 10
Solved Threads: 0
Light Poster
anusha88 is offline Offline
28 posts
since Jun 2009
Jul 2nd, 2009
0

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.
Reputation Points: 10
Solved Threads: 0
Light Poster
anusha88 is offline Offline
28 posts
since Jun 2009
Jul 2nd, 2009
0

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.
Reputation Points: 22
Solved Threads: 13
Junior Poster in Training
di2daer is offline Offline
66 posts
since Sep 2008
Jul 2nd, 2009
0

Re: can't install JFreechart

no,im not using eclipse or net beans.how to go about then?
Reputation Points: 10
Solved Threads: 0
Light Poster
anusha88 is offline Offline
28 posts
since Jun 2009
Jul 2nd, 2009
0

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.
Reputation Points: 22
Solved Threads: 13
Junior Poster in Training
di2daer is offline Offline
66 posts
since Sep 2008
Jul 2nd, 2009
0

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?
Reputation Points: 10
Solved Threads: 0
Light Poster
anusha88 is offline Offline
28 posts
since Jun 2009
Jul 2nd, 2009
0

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
Reputation Points: 22
Solved Threads: 13
Junior Poster in Training
di2daer is offline Offline
66 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: url case sensitive
Next Thread in Java Forum Timeline: Frame and Multiple Panel ..Need Help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC