How to call my jar and jinput with a "script"

Hi, guys :smiley: how can i call to jinput and my jar wiith a script? In my last post i ask how to release my app, and yeah they said me that, but how can i do the script for my app, a can’t do it, i don’t know how to do it :S Thank

Windows:

java -jar <list of jars separated by semicolon (;)> -Djava.library.path=<path to natives> <MainClass>

Linux:

java -jar <list of jars separated by colon (:)> -Djava.library.path=<path to natives> <MainClass>

Examples:
Windows: [icode]java -jar myjar.jar;jinput.jar;other-crap.jar -Djava.library.path=natives/ com.mycrap.Main[/icode]
Linux: [icode]java -jar myjar.jar:jinput.jar:other-crap.jar -Djava.library.path=natives/ com.mycrap.Main[/icode]

T.T I’ve problem with that, T.T when i make the script with jinput it doesn’t work :S but it works with my jar alone. Must i modify manifest file?

Please be more precise. Maybe a JAR is missing. JInput require JUtils as far as I know.

I’m using java, with jinput not lwjgl. The problem is when i play the script file, it doen’t execute the jar… And i cannot see nothing at the console. When i execute my jar with “natives” but without jinput. I can see in the console “INFO: Failed to load library: no jinput-linux in java.library.path” :S

That message means that you have JInput jar on the classpath and are trying to use it, but don’t have the libjinput.so in the native library path.

Endolf