Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


2010/11/8 Joost Eekhoorn <joost.eekhoorn@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.

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.