batch file - Java - Run a jar with VM arguments without commandline -


i have jar needs -djava.library.path set lwjgl on launch or throw unsatisfiedlinkerror. negate problem, have launched jar through cmd vm argument using batch file (windows).

my question - there way natively in jar without requiring kind of launcher?

you can set properties inside program. use either

system.setproperty("org.lwjgl.librarypath", "path/to/natives"); 

or

configuration.library_path.set("path/to/natives"); 

at start of main method.


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -