I have a jar file that needs to be executed and a library path that needs to be set before execution (library path is very important):
// works but without library path being set
start bin/myJar.jar
// should work but doesn't because OS path knows no java paths
// error message like: "java" could not be found
start java -Djava.library.path=bin\native -jar bin\myJar.jar
I think Oracle does very bad job on installation of their products because there is always manual operation necessary. I can't expect of my users to set the path variable by themselves. So is there a way to update the path variable via batch (temporary just for execution of this one jar would be best)?
I'm also using ant builds to generate jars. All settings I COULD do are these:
// ...
<manifest>
<attribute name="Class-Path" value="another.jar another2.jar " />
<attribute name="Main-Class" value="myPackage.MyClass" />
</manifest>
// ...
Is THERE a way to set library path ?