Hello,
i've read the following instructions but i still got a problem and i couldn't figure out whats going wrong yet:
http://www.jmonkeyengine.com/forum/index.php?topic=9996.0
Every time i try to exectue my program by calling 'mvn exec:java' i get this execution exception:
[INFO] An exception occured while executing the Java class. null
org.lwjgl.LWJGLException
[...]
Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
[...]
Obviously he couldn't find the lwjgl libraries (lwjgl.jar, lwjgl_util_*.jar...). What part of the pom.xml is responsible for that? I guess the following lines belonging to the maven-dependency-plugin are the ones i'm looking for:
<artifactItems>
<artifactItem>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl</artifactId>
<version>2.0rc1</version>
<type>jar</type>
<classifier>${build-type}</classifier>
<outputDirectory>${basedir}/lib/lwjgl/</outputDirectory>
</artifactItem>
Is this correct ? My Eclipse project is structured like this:
-> src/main/java
-> src/test/java
-> lib
-> lwjgl
->native
-> windows
-> etc.
-> lwgjl.jar
-> lwjgl_util*.jar
-> etc.
So in my understanding my settings should be allright.
Any ideas what might be wrong with my classpath?
Regarding the lwjgl.natives:
The systemProperty 'org.lwjgl.librarypath' is used by lwjgl to locate the appropriate native library. So we've got to set it in the exec plugin to the following:
<lwjgl.natives>${basedir}/lib/lwjgl/native/</lwjgl.natives>
[...]
<systemProperty>
<key>org.lwjgl.librarypath</key>
<value>${lwjgl.native}</value>
</systemProperty>
The following profiles are responsible for specifing the lwjgl.native variable to the actual folder depending on the system os. Right?