How to install Jirr for net beans 6.1

Discussion about Irrlicht's Java wrapper
Post Reply
marianodonati
Posts: 2
Joined: Thu Jul 23, 2009 4:43 pm

How to install Jirr for net beans 6.1

Post by marianodonati »

Hi to everyone, i'm having troubles using jirr on net beans. When I try to run the application I get this error:

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();
        }
        
    }

}
In net beans I create a new library and added the irrlicht jar file to it. Then I added this library to the project.
Any ideas why I'm having this error?.
Regards.[/code]
spidersharma
Posts: 50
Joined: Thu Aug 13, 2009 7:16 am
Location: India

Re: How to install Jirr for net beans 6.1

Post by spidersharma »

Have you copied all the dll files in your current netbeans project?
which version of jirr you are using?
Post Reply