[Libreoffice] Building problem, OpenSuse 10.3, 64bits, javac

Joost Eekhoorn joost.eekhoorn at gmail.com
Mon Nov 8 05:20:24 PST 2010


2010/11/8 Joost Eekhoorn <joost.eekhoorn at gmail.com>

> I have switched from Ubuntu to OpenSuse.
> This OpenSuse is a bare system with the latest update, thus OpenSuse 10.3.
> I removed the OpenOffice.
>
> Then I tried:
> sudo zypper si -d OpenOffice_org-bootstrap
> but that did not work. I say that 10.3 was not yet defined, thus I did the
> required installations manually, following the list of 10.2.
> With jre/jvm I had problems. I finally installed java-1.6.0-openjdk-1.6.0.
> Then it passed the first part of "make" and started building, til:
>
> Entering /home/joost/work/build/build/libreoffice-3.2.99.2/ridljar/com
>
> Making:    com.dpj
>
> /usr/lib64/jvm/jre/bin/javac -source 1.5 -target 1.5 -classpath ".:../
> unxlngx6.pro/class:/usr/lib64/jvm/jre/jre/lib/rt.jar:." -d ../
> unxlngx6.pro/class  @/tmp/mkq2jhLz
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/sun/tools/javac/Main
> Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
> Could not find the main class: com.sun.tools.javac.Main. Program will exit.
> dmake:  Error code 1, while making '../unxlngx6.pro/misc/com_dummy.java'
>
> Must I install another jre/jvm/jdk ?
>
> Joost
>

I did remove java-1.6.0-openjdk-1.6.0 and insalled java-1.6.0-sun and
java-1.6.0-sun-devel but then it could not the java using $JAVA_HOME.
With "env" I saw:
JAVA_HOME=/usr/lib64/jvm/jre
I changed that to JAVA_HOME=/usr/lib64/jvm/java
(export JAVA_HOME=/usr/lib64/jvm/java)

This solved my problem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101108/9a0f70d4/attachment.html>


More information about the LibreOffice mailing list