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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -