I want to start using Irrlicht but I can't get my project to run.
It compiles fine but throws an exception when I try to run it.
I'm using Netbeans 3.8 in Windows XP Pro SP3. JDK 1.6.0, JRE 6.
Here is the error:
Code: Select all
run:
Exception in thread "main" java.lang.UnsatisfiedLinkError: net.sf.jirr.JirrJNI.swig_module_init()V
at net.sf.jirr.JirrJNI.swig_module_init(Native Method)
at net.sf.jirr.JirrJNI.<clinit>(JirrJNI.java:2930)
at net.sf.jirr.dimension2di.<init>(dimension2di.java:41)
at irrlichttest.Main.main(Main.java:20)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
Code:
Code: Select all
import net.sf.jirr.*;
public class Main {
public static void main(String[] args) {
IrrlichtDevice device = Jirr.createDevice(E_DRIVER_TYPE.EDT_SOFTWARE, new dimension2di(600,400), 16); // Line 20
}
}
I've been searching Google for help, here's what I tried so far:
- The .jar file is in the libraries list in the project properties.
- I added the path to the directory that contains the two files (.jar and .dll) into %PATH% and %CLASSPATH%, and made sure it was in the libraries list with this code:
Code: Select all
class getLibraryPath
{
public static void main(String[] args)
{
String path = System.getProperty("java.library.path");
System.out.println(path);
}
}
- I tried placing the files in the root directory of my project and in the lib/ directory of my project.
Any idea?
Thanks
Edit
I realized I was using the wrong package, I've just downloaded Jirr 1.4.2, included the jirr142.jar in the project properties, and copied all DLLs from the bin directory into the project root. But I still have the same problem.