[Libreoffice] tools.jar problem when building tomcat in libreoffice

Caolán McNamara caolanm at redhat.com
Thu Oct 28 05:17:24 PDT 2010

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


More information about the LibreOffice mailing list