On Thu, 2010-10-28 at 19:25 +0800, 李明致 wrote:
I have a problem when building tomcat (and saxonin, beanshell,
lucence, jvmfwk,rhino,hsqldb,ridljar) in libreoffice
I have JAVA_HOME set, and tools is in $JAVA_HOME/lib
but when i build the tomcat to found out what was wrong, i have
those errs :
Unable to locate tools.jar. Expected to find it
in /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/lib/tools.jar
......
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.
It is currently set to "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre"
Can you see if the /usr/lib/jvm/java-1.6.0-openjdk-1.6.0 exists is
missing or if its a dangling link ?
i.e. ls -l /usr/lib/jvm/java-1.6.0-openjdk-1.6.0
I seem to remember getting an error like this when I had screwed up my
java links with alternatives.
And what's the output of
java -version
C.
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.