JNODE test error

Hie guys.
I have installed JNODE and I am trying to run examples in the source code. I have the code below and an error. Could you please let me know what the problem could be.

// below is the code

package org.jnode.test;

import org.jnode.driver.AbstractDeviceManager;
import org.jnode.driver.DeviceUtils;
import org.jnode.driver.input.PointerAPI;
import org.jnode.driver.input.PointerEvent;
import org.jnode.driver.input.PointerListener;

import org.jnode.driver.*;
import org.jnode.plugin.*;
import java.util.*;

public class PointerTest{

public static void main(String[] args) throws Exception {

final String devId = (args.length > 0) ? args[0] : "ps2mouse";
PointerAPI api = (PointerAPI)DeviceUtils.getAPI(devId, PointerAPI.class);
api.addPointerListener(new MyListener());


public static class MyListener implements PointerListener {

public void pointerStateChanged(PointerEvent event) {
System.out.println("x,y,z abs: " + event.getX() + "," + event.getY() + "," + event.getZ() + " " + event.isAbsolute());




Exception in thread "main" org.jnode.driver.DeviceNotFoundException: DeviceManager not found
at org.jnode.driver.DeviceUtils.getAPI(DeviceUtils.java:83)
at org.jnode.test.PointerTest.main(PointerTest.java:43)
Caused by: javax.naming.NameNotFoundException: org.jnode.driver.DeviceManager
at org.jnode.naming.DefaultNameSpace.lookup(DefaultNameSpace.java:94)
at org.jnode.naming.InitialNaming.lookup(InitialNaming.java:88)
at org.jnode.driver.DeviceUtils.getDeviceManager(DeviceUtils.java:49)
at org.jnode.driver.DeviceUtils.getAPI(DeviceUtils.java:81)
... 1 more
Java Result: 1
BUILD SUCCESSFUL (total time: 21 seconds)

//end of code

Guys I think the getVmClass() method has a problem on my machine so I used getClass() method, hence the problem above. Please help me.

I hope to understand the running of JNODE.

Where are you running this

Where are you running this code, under JNode or under the JDK?
Normally it works only under JNode.