Use the command "javaws" instead of "java -jar" to test your JNLP file.

I don't know whether it is possible to create a fat JAR containing both your game, Slick and LWJGL. At a certain step, native libraries have to be unpacked (from the JAR), don't they? You can put native libraries into a given directory and set the Java library path in order to tell the JVM where to find them.

always a painI use the eclipse export thing, which works great - it puts the jars that you need wherever you want, inside the jar or notthen you still have to have a folder with all the lwjgl native filesand do -Djava.library.path=natives_folder

always a painI use the eclipse export thing, which works great - it puts the jars that you need wherever you want, inside the jar or notthen you still have to have a folder with all the lwjgl native filesand do -Djava.library.path=natives_folder

It won't work on all platforms as you can set only a single path. Is it possible to bundle all native libraries of LWJGL into a JAR and use a mechanism of dynamic loading (able to extract native libraries and load them at runtime)?

always a painI use the eclipse export thing, which works great - it puts the jars that you need wherever you want, inside the jar or notthen you still have to have a folder with all the lwjgl native filesand do -Djava.library.path=natives_folder

It won't work on all platforms as you can set only a single path....

No idea what you mean - it does work on all platforms. the eclipse export thing takes charge of the external jars I use; while I just say -Djava.library.path=lib.and in the lib folder (not a jar), there are all the natives for all platforms

always a painI use the eclipse export thing, which works great - it puts the jars that you need wherever you want, inside the jar or notthen you still have to have a folder with all the lwjgl native filesand do -Djava.library.path=natives_folder

It won't work on all platforms as you can set only a single path....

No idea what you mean - it does work on all platforms. the eclipse export thing takes charge of the external jars I use; while I just say -Djava.library.path=lib.and in the lib folder (not a jar), there are all the natives for all platforms

I'm assuming he means because LWJGL and Jogl usually have their native libraries in sub-dirs in their distribution for each platform. For LWJGL I always end up unpacking them into a single directory because IIRC none of them share names. I don't know about Jogl though.

Oh are the natives inside the Jar? That doesn't work unless the FMOD library extracts them and loads them itself.

No I put them in the native directory which you can see on my image ^^I included it in the maifest:natives/NativeFmodDesigner.dll natives/NativeFmodDesigner64.dll natives/NativeFmodEx.dll natives/NativeFmodEx64.dll

Maybe I need some other .dll?!? I cant find another one having this problem *_*

I obviously dont add the solaris libs. Who cares about Solaris; I might as well start supporting like AmigaOS or OS/2.Not only are you running Solaris, which I have not met a single person who has ever seen Solaris run, let alone using it, you're also trying to play a game on it... yeah, right.

@FMOD stuffyou have to call Init.loadLibraries();In case of FMOD I actually add those native jars to the build path in eclipseso you have the normal jar and then win, win64, linux, linux64 and mac jar - which all include the nativesAnd you dont need Designer; well if you dont use it that is

@FMOD stuffyou have to call Init.loadLibraries();In case of FMOD I actually add those native jars to the build path in eclipseso you have the normal jar and then win, win64, linux, linux64 and mac jar - which all include the nativesAnd you dont need Designer; well if you dont use it that is

Ok. You can have a look at the JNLP file used by the game "Flesh Snatcher" in the showcase section, it relies on LWJGL. Just replace the line handling LWJGL by the line handling Slick & LWJGL at the same time, replace its JAR by yours, sign all JARs with the same signature and upload your JAR and your JNLP file onto a server.

@gouessejThanks for your advise I'll be looking at that next time I have to deploy a program ..I also saw you can change .JAR files to .EXE (Win32) .. I didn't read further than that, and don't know more about it.But would that be recommendable too? .. I'm aware that it doesn't run under other systems.

I also saw you can change .JAR files to .EXE (Win32) .. I didn't read further than that, and don't know more about it.But would that be recommendable too? .. I'm aware that it doesn't run under other systems.

You obviously know this solution is not cross-platform. Some programmers here prefer hiding Java and use tools to perform deep native integration. I advise you to look at this, this sums up the situation pretty well:http://www.excelsior-usa.com/articles/java-to-exe.html

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org