1

Within eclipse I try to get an ant task running which looks like this:

<target name="run-win-64" depends="jar-win-64">
    <java jar="${deploy.dir}/eco.jar" fork="true" dir="${deploy.dir}" >
        <arg value="-Djava.library.path=lib/lwjgl/natives" />
    </java>
</target>

and I get the titled error: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

if I start my small program within my windows console (in the deploy directory) with following line:

java -Djava.library.path=lib/lwjgl/natives -jar eco.jar

everything runs as expected.

Swapnil
  • 8,201
  • 4
  • 38
  • 57
semTex
  • 343
  • 5
  • 16

1 Answers1

1

Use <jvmarg> instead of <arg>.