Skip to main content

who can help with this failure: [1] xxxx after starting lg3d-dev in x-term

6 replies [Last post]
fmx250
Offline
Joined: 2004-06-30

hi,

after starting lg3d-dev for test, i get the above listed failure.
everything is installed and configured as described in the "getting started ..." page.
opengl ist tested with glxinfo (yes). but it won�t work.

here are my log results:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/jdesktop/lg3d/displayserver/socketconnector/ServerHandler (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

so if you�re able, please help me.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
fmx250
Offline
Joined: 2004-06-30

hi roger,

thank you. i typed in and it displayed me java version "1.4.1", also for jre and hotspot.
I installed the version from the getting started page and i can see it installed correctly
in my control center under suse 8.2. where can i configure, that my system uses the new version?

thanks
ralph

bears
Offline
Joined: 2004-07-04

Hello Ralph.

First make sure you have everything installed correctly. In addition to JDK1.5.0, you must have Java 3D and Java Advanced Imaging installed.

Both of these products should be installed (as outlined in the getting started document) so that they unpack into the JDK1.5.0 directory.

You can check this as follows...

If you installed JDK1.5.0 to

/opt/jdk1.5.0

( if you put it elsewhere, convert all subsequent references to this directory to the directory that you actually installed to ) and you then installed j3d and jai correctly under the JDK java runtime directory

/opt/jdk1.5.0/jre

then you should have find these 2 files exist

/opt/jdk1.5.0/jre/lib/ext/j3dcore.jar
/opt/jdk1.5.0/jre/lib/ext/jai_core.jar

If you do have these 2 files, then you have everything correctly installed.

As mentioned by Filipe (and the getting started document), you need to set environment variables to ensure that Looking glass can find the correct java installation.

To do this, open a terminal window, then type the following line and hit enter

export JAVA_HOME=/opt/jdk1.5.0/jre

then type the following line and hit enter

export PATH=/opt/jdk1.5.0/jre/bin:$PATH

You can now change to the directory where you installed Looking Glass and run the developer version. In my case, Looking Glass is installed under my home directory, so I would type...

cd ~/lg3d/bin

and then

./lg3d-dev

This should bring up Looking Glass.

Hope this helps.

Roger.

> hi roger,
>
> thank you. i typed in and it displayed me java
> version "1.4.1", also for jre and hotspot.
> I installed the version from the getting started page
> and i can see it installed correctly
> in my control center under suse 8.2. where can i
> configure, that my system uses the new version?
>
> thanks
> ralph

fmx250
Offline
Joined: 2004-06-30

thanks for your quick help.

i installed the packages line by line from the "getting started ..." page.

but something is curiuos. i don�t get a request by typing "java-version" in a terminal.
in my control-center of my suse 8.2 distribution i can see both (jdk,jre) with the right version no.

again, thanks for your help
ralph

bears
Offline
Joined: 2004-07-04

> thanks for your quick help.
>
> i installed the packages line by line from the
> "getting started ..." page.
>
> but something is curiuos. i don�t get a request by
> typing "java-version" in a terminal.
> in my control-center of my suse 8.2 distribution i
> can see both (jdk,jre) with the right version no.
>
> again, thanks for your help
> ralph

You have whitespace missing Ralph. It is the word java, followed by a space, followed by a minus sign, followed by the word version.

java -version

The forum software makes the space look non-existent, but it is there :-)
Regards,
Roger.

bears
Offline
Joined: 2004-07-04

I think this usually happens if code is compiled with a Java version higher than the vesion of your VM. Did you load the new Java version exactly as specified in the getting started document?

Test this is correct by typing type "java -version" in a terminal. You should see something like...

[b]Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)[/b]

If the versions are not as above, that might be your problem.

Roger.

selendic
Offline
Joined: 2006-02-17

Probably wrong Java version. See /tmp/lgserver.log, there it reports what Java it uses. Try writing "export JAVA_HOME=/something/jdk1.5.0" and then "export PATH=$JAVA_HOME/bin:$PATH" on a prompt before starting lg3d-session.

Good luck, Filip