I've searched google for hours but can't find a simple explanation for how to add jfreechart and jcommon to the classpath. Can anyone tell me how to do that?Fatal Error: one of the following jar files is missing from the classpath:
jfreechart-1.0.9.jar
jcommon-1.0.12.jar
Please make sure you run the application from the shortcut that was
installed on your desktop or on the Start menu when you upgraded.
Jfreechart classpath?
-
- Posts: 3
- Joined: Sat Oct 25, 2014 9:57 pm
- antibot: No, of course not.
Jfreechart classpath?
I'm trying to run interactivebrokers TWS on linux, but I keep getting this classpath error:
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Jfreechart classpath?
Normally you invoke the java runtime with the -classpath option, for example:
java -classpath jfreechart-1.0.9.jar:jcommon-1.0.12.jar yourapp.jar
But the exact class path configuration will depend on the requirements of your application. Some applications will bundle everything in one jar, so all you have to do is:
java -jar yourapp.jar
Others will use external jars as dependencies, but put references to the external jar files in the manifest entries (in the app jar file) so you don't have to specify class path entries on the command line.
java -classpath jfreechart-1.0.9.jar:jcommon-1.0.12.jar yourapp.jar
But the exact class path configuration will depend on the requirements of your application. Some applications will bundle everything in one jar, so all you have to do is:
java -jar yourapp.jar
Others will use external jars as dependencies, but put references to the external jar files in the manifest entries (in the app jar file) so you don't have to specify class path entries on the command line.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
-
- Posts: 3
- Joined: Sat Oct 25, 2014 9:57 pm
- antibot: No, of course not.
Re: Jfreechart classpath?
Thanks! I neglected to say that this is a .jnlp file tho, which needs to start with javaws. I've tried doing javaws -cp "/usr/share/java" latest.jnlp but to no avail. I've also tried #export CLASSPATH="/usr/share/java" before running the javaws command, neither of which worked.
Not sure why this is so difficult, and why these applications aren't automatically linked to the correct files. What should I try next? I'm at a loss.
Not sure why this is so difficult, and why these applications aren't automatically linked to the correct files. What should I try next? I'm at a loss.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Jfreechart classpath?
If it is launched by JNLP then everything should be specified in the .jnlp file. You should contact the producer of the application.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
-
- Posts: 3
- Joined: Sat Oct 25, 2014 9:57 pm
- antibot: No, of course not.
Re: Jfreechart classpath?
Hmm, that's an interesting idea, but it doesn't make much sense given the application launches fine in windows. The issue obviously is one having to do with the classpath variable in linux.david.gilbert wrote:If it is launched by JNLP then everything should be specified in the .jnlp file. You should contact the producer of the application.
Once again: does anyone know how to set the CLASSPATH environment variable in linux for jfreechart and jcommon?
Re: Jfreechart classpath?
It's been a couple of months, so I hope you found a solution. I ran into this today, and found that the latest TWS download has fixed the issue, as it includes the jfreechart and jcommon classes in its total.2013.jar file. Here's the link:
https://www.interactivebrokers.com/en/? ... _entity%3D
Just install the TWS 9482 (Dec 19 2014) release as directed, then start it as directed:
https://www.interactivebrokers.com/en/? ... _entity%3D
Just install the TWS 9482 (Dec 19 2014) release as directed, then start it as directed:
Code: Select all
cd IBJts; java -cp jts.jar:total.2013.jar -Xmx512M -XX:MaxPermSize=128M jclient.LoginFrame .