I downloaded the linux binary and tried to follow the installation instructions but it is not working.
JDK 1.6.0 is installed at /usr/java/jdk1.6.0
[root_at_poseidon chris]# export JAVA_HOME=/usr/java/jdk1.6.0/
[root_at_poseidon chris]# $JAVA_HOME/bin/java glassfish
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: .tmp.installer46812jar
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/chris/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/home/chris/java.version=1.4.2)
Yes, Java 1.4.2 is installed on the system and is the default (that's what the oracle installation required), but that's not what I am pointing to.
I tried just extracting from the jar file using jar, and a single class glassfish.class was created.
Trying to run that still yielded the same error
[root_at_poseidon chris]# $JAVA_HOME/bin/java -Xmx256m glassfish
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: .tmp.installer9299jar
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/chris/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/home/chris/java.version=1.4.2)
This seems to be referencing the default install of java (1.4.2) internally. I don't want to touch this, because of the oracle configuration.
How do I get this installation to work?
Thanks
Chris
[Message sent by forum member 'krustyfur' (krustyfur)]
http://forums.java.net/jive/thread.jspa?messageID=233184