Sun JRE fails with Web Start, openJdk works

Started by kinoko, November 27, 2011, 11:43:58

Previous topic - Next topic

kinoko

My app uses OpenAL with SWT, no OpenGL graphics involved.
The app works fine from Eclipse / Command line, but deployment with web start fails.
More precisely,
 - sun-6-openjdk -> OK
 - sun-6-jre  -> UnsatisfiedLinkError: no lwjgl in java.library.path

Linux (32bit Ubuntu 11.04) + Firefox (openjdk)  -> OK
Win XP (Sun's JRE) -> Fails

LWJGL 2.8.2

Using javaws -verbose with openjdk shows that the native libraries load fine (from a jar).

Any ideas? Probably it's not a bug - at least not on behalf of LWJGL, but around last year when I first played around with LWJGL it played well with javaws.


Relevant part from my jnlp:
(Class-Path in MyApp.jar's manifest is empty - I don't know if it's relevant).
<resources>
		<j2se version="1.6+" />
                <extension href="swt.jnlp" />
         
		<jar href="MyApp.jar" main="true"/>
		<jar href="lib/lwjgl/lwjgl-2.8.2.jar" />
		<jar href="lib/lwjgl/lwjgl-2.8.2-util.jar" />
	</resources>
		
	<resources os="Windows" >
		<jar href="lib/lwjgl/lwjgl-2.8.2-win.jar"/>
	</resources>
	<resources os="Linux" >
		<jar href="lib/lwjgl/lwjgl-2.8.2-linux.jar"/>
	</resources>


kinoko

I tried 2 more things.

# 1 # Using the original .jnlp extension
<extension name="lwjgl" href="http://lwjgl.org/webstart/2.8.2/extension.jnlp" />

In my .jnlp file --> FAIL


# 2 # Checked the official demo

lwjgl.org/webstart/demo.php

It fails both with Sun's Java and OpenJdk.

net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file.
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:596)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:887)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1084)
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:574)
	... 1 more
Caused by: 
java.lang.ClassNotFoundException: org.lwjgl.
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1084)
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:574)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:887)

Matzon

does http://lwjgl.org/demos.php webstart links work for you?

I think something is broken in your environment - and not lwjgl

kinoko

Thank you.
The link does work for me.
Os it must be my  .jnlp file or my server's settings..?

http://lwjgl.org/demos.php   -> OK
http://lwjgl.org/webstart/demo.php  -> FAIL

Is there any differences between the two links?
This might help me to debug my configuration.

It's unrelated to the bug but, I am not sure about the ethical aspects of invoking .jnlp extension straight from lwjgl.org codabase.
Is it a common practice, or something I should avoid.

Thanks for your help.

Matzon

yes??  - one is a html page and the other is a dynamically generated jnlp file. The latter is not supposed to be accessed without some arguments.