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:3170)
at net.sf.jirr.dimension2di.<init>(dimension2di.java:41)
at javaapplication5.Main.main(Main.java:23)
I think that it's having trouble trying to find the library or something like that.
Here's my code:
Code: Select all
package javaapplication5;
import net.sf.jirr.*;
/**
*
* @author Mariano
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
// create the Irrlicht device
IrrlichtDevice device = Jirr.createDevice(E_DRIVER_TYPE.EDT_SOFTWARE, new dimension2di(600, 400), 16 );
// set the window title
device.setWindowCaption("hola mundo!");
IVideoDriver video = device.getVideoDriver();
ISceneManager scene = device.getSceneManager();
ISceneNode cube = scene.addCubeSceneNode();
ICameraSceneNode camera = scene.addCameraSceneNode();
while(device.run())
{
video.beginScene(true, true, new SColor(255, 255, 0, 255));
scene.drawAll();
video.endScene();
}
}
}
Any ideas why I'm having this error?.
Regards.[/code]