View Full Version : Installation Java Errors
lindengunny
12-15-2008, 09:56 AM
Attempting to install BI 1.6.0.348 on linux Redhat 4.0. Have installed JRE 1.5.0_07. Error I see when running startdesigner_linux.sh is:
Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: org.eclipse.swt.widgets.Display
at java.lang.WMClassLoader.resolveClass(java.lang.Class)(/usr/lig/libgcj.so.5.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
Not sure where to proceed from here. Any help is appreciated.
bugg_tb
12-15-2008, 09:58 AM
that error tells us that you aren't using JAVA you're using GJC, check your paths and libs
lindengunny
12-15-2008, 01:41 PM
Changed the path setting to PATH=/usr/java/jre1.5.0_17:/bin and still get the same error. Don't understand what needs to be done to get around the GCJ error.
Is there documentation somewhere on what the environment settings need to be for installation of BI?
bugg_tb
12-15-2008, 02:26 PM
its not path its JAVA_HOME
lindengunny
12-16-2008, 09:10 AM
Added JAVA_HOME=/usr/java/jre1.5.0_17/bin to the environment. Same errors popped up. Using java version of 1.4.2. Does this need to be upgraded also? Found nothing in the documentation on what java version to use - only JRE.
mlowery
12-16-2008, 10:00 PM
JAVA_HOME should not point to bin. Instead do JAVA_HOME=/usr/java/jre1.5.0_17
lindengunny
12-17-2008, 09:05 AM
Thanks. Tried that also to no avail. Here are the PATH and JAVA_HOME settings:
PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/java:/usr/X11R6/bin
JAVA_HOME=/usr/java/jre1.5.0_17
Beginning of the error I receive when trying to install ReportDesigner:
Warning: -XX:MaxPermSize=256m not understood. Ignoring.
Warning: -Xms128m not understood. Ignoring.
Warning: -Xmx256m not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: org.eclipse.swt.widgets.Display
at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/home/oracle/Desktop/ReportDesigner/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/home/oracle/Desktop/ReportDesigner/java.version=1.4.2)
Caused by: java.lang.ClassNotFoundException: java.awt.PointerInfo not found in [file:./, file:./resources/, file:./bin, file:./classes, file:./lib/, file:./lib/acegi-security-1.0.2.jar, file:./lib/activation.jar, file:./lib/annotations.jar, file:./lib/antlr-2
cedric claidiere
12-22-2008, 04:35 AM
Hello !
It's both JAVA_HOME and PATH env variables.
JAVA_HOME says where executables are. PATH where librairies are.
Try to put :
export JAVA_HOME=/usr/java/jre_1.5.0_17
export PATH=$JAVA_HOME/bin:$PATH
Then try :
which java
It must show something like : /usr/java/jre_1.5.0_17/jre/bin/java
If not :
Edit your $JAVA variable into jboss/bin/run.sh to force Pentaho to use your jre (/usr/java/jre_1.5.0_17/jre/bin/java). Note : On tomcat you must check for a "catalina.sh"
Regards,
Cedric