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
Post a Comment