I’m making an attempt at using DevIL for loading textures, but whenever I call IL.create(), it throws this:
org.lwjgl.LWJGLException: Could not load devil library.
at org.lwjgl.devil.ILNative.nCreateIL(Native Method)
at org.lwjgl.devil.ILNative.createIL(ILNative.java:98)
at org.lwjgl.devil.IL.create(IL.java:583)
at DevIL_test.<init>(DevIL_test.java:7)
at DevIL_test.main(DevIL_test.java:15)
It sounds to me like it cannot locate lwjgl-devil.dll. But what have I done wrong?
Here’s where I put my DevIL JARs (for compilation, works pefect):
C:\j2sdk1.4.0\lib
C:\j2sdk1.4.0\jre\lib
C:\j2sdk1.4.0\jre\lib\ext
C:\Program Files\Java\jre1.5.0_06\lib
C:\Program Files\Java\jre1.5.0_06\lib\ext
And here’s where I put my DevIL DLLs (for runtime, throws exception):
C:\j2sdk1.4.0\jre\bin
C:\Program Files\Java\jre1.5.0_06\bin
Here’s my code (just a quick test):
import org.lwjgl.devil.IL;
import org.lwjgl.LWJGLException;
public class DevIL_test {
public DevIL_test() {
try {
IL.create();
} catch(LWJGLException e) {
e.printStackTrace();
System.exit(-1);
}
}
public static void main(String args[]) {
new DevIL_test();
}
}
I’d really appreciate some help here. I’m stumped.
Thanks,
Jamison