Hello,
I am attempting to build the JFreeChart libraries as according to the install instructions on a SUSE Linux 10.1 system. After execution of "ant compile" received the following error:
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/tools.jar
Buildfile: build.xml
initialise:
compile:
[javac] Compiling 464 source files to /data/jFreeChart/jfreechart-1.0.1/build
BUILD FAILED
/data/jFreeChart/jfreechart-1.0.1/ant/build.xml:53: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
note: I can compile / run other java programs directly from the command line so believe the JAVA_HOME is set correctly.
I appreciate any help with this issue and can provide more details if needed (e.g. ant debug output).
thank you.
ant build error with SUSE Linux 10.1
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I've seen this on my system (Ubuntu Linux) also. I fixed it with:
Because I test with a few different JDKs, I tend to have them just dumped in my home directory rather than installed "properly"...that's lazy and messy, but it works for me.
Code: Select all
export JAVA_HOME=/home/dgilbert/jdk1.5.0_07/
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Hi,
(You won't have much fun with the Gnu-Compiler anyway, as the out-of-the-box Classpath project versions are not able to run JFreeChart properly.)
Regards,
Thomas
It seems you're using the gnu-compiler. That one is not fully compatible to the real JDK, so you need a standard-compliant JDK instead. Grab one from Sun, IBM or any other JDK-Vendor and Ant will work much better./usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/tools.jar
(You won't have much fun with the Gnu-Compiler anyway, as the out-of-the-box Classpath project versions are not able to run JFreeChart properly.)
Regards,
Thomas
-
- Posts: 1
- Joined: Thu Jun 15, 2006 2:00 pm
- Location: Sri lanka
- Contact:
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
This is changing rapidly, though. With the latest GNU Classpath from CVS, JFreeChart is running really well. See the following screenshots:Taqua wrote:(You won't have much fun with the Gnu-Compiler anyway, as the out-of-the-box Classpath project versions are not able to run JFreeChart properly.)
http://www.jfree.org/jfreechart/samples-gnu.html
The next developer snapshot (0.92) is due in July.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

