utaren
August 30, 2007, 9:13am
1
Hello,
i'm having this classical problem with "no lwjgl in java.library.path" while using java web start. following my jnlp-file:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://139.30.101.246/ship3djmonkey" href="index.jnlp">
<information>
<title>Degrees of Freedom</title>
<vendor>maring</vendor>
<description>Degrees of Freedom</description>
<description kind="short">Degrees of Freedom</description>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.6"/>
<jar href="ship3djmonkey.jar"/>
</resources>
<resources os="Windows">
<nativelib href="lwjgl-native-windows.jar"/>
</resources>
<resources os="Linux">
<nativelib href="lwjgl-native-linux.jar"/>
</resources>
<property key="java.library.path" value="." />
<application-desc main-class="de.uni.rostock.maring.Ship3dApplication"/>
</jnlp>
and this is the folder, where all the jars etc. are in:
[img]http://139.30.101.246/ship3djmonkey/screenshots/screenshot_folder.PNG[/img]
what may be the problem??? i try to figure it out since three days ...
Doesn't it automatically add the contents of the native jars to the library path and thus the line
<property key="java.library.path" value="." />
is actually overriding that and messing your path up?
By the way this is a complete guess as I've never used web start
utaren
August 30, 2007, 9:33am
3
i deleted the line <property key=“java.library.path” value="." />, cleaned browser cache and got the same error messages, shown below …
You might want to give this a try:
http://captiveimagination.com/wsc/wsc.jnlp
I still use it from time to time.
you dont have lwjgl.jar in resources ?
<resources>
<j2se version="1.5+"/>
<jar href="yourgame.jar" main="true"/>
<jar href="lwjgl.jar" />
<jar href="jme.jar" />
</resources>
utaren
August 31, 2007, 6:56am
6
ha! no! i have no lwjgl.jar in my jnlp-resources! i try to change now my application's folder structure (now the lwjgl.jar is in there) to that way you suggested.
utaren
August 31, 2007, 7:56am
7
@ mud2005: THANK YOU!!! It works now!!!
@ darkfrog: your webstart creator gave me nearly the same jnlp-file that i had before (except the main="true" attribut). so i knew the error must be somewhere else. thanks for that, too!! nice little app!
to whom it may concern: my problem was solved while i did this:
making a signed jar of my application (used fatjar). in this jar there were all the jme-jars in the lib-directory, except the lwjgl.jar (the one that needs the native libs)
making a signed jar from lwjgl.jar
making signed jars of the native dlls (helpfull was http://www.eclipse.org/swt/jws/ )
making this jnlp-file (useful was darkfrogs webcreator):
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<jnlp spec="1.0+" codebase="http://139.30.101.246/ship3djmonkey" href="index.jnlp">
<information>
<title>Degrees of Freedom</title>
<vendor>maring</vendor>
<description>Degrees of Freedom</description>
<description kind="short">Degrees of Freedom</description>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
<jar href="ship3djmonkey.jar" main="true"/>
<jar href="lwjgl.jar"/>
</resources>
<resources os="Windows">
<j2se version="1.5+"/>
<nativelib href="lwjgl-native-windows.jar"/>
</resources>
<resources os="Linux">
<j2se version="1.5+"/>
<nativelib href="lwjgl-native-linux.jar"/>
</resources>
<property key="java.library.path" value="." />
<application-desc main-class="de.uni.rostock.maring.Ship3dApplication"/>
</jnlp>
5. putting all the signed jars and the jnlp-file in one directory
6. ready!!!