I wanted to make shure that I dont't bang my head against a digital wall by using this coding approach. So, I wanted to ask you guys for opinion.
I wrote a simple NXT remote controll, that is executed on a pc and communicates via bluetooth with the NXT.
I need direct access to the NXTs Motors, so I wanted to use the LCP approach.
this is the methode that seems to be producing an exception:
- Code: Select all
private void connect() {
try {
remoteNxt = new RemoteNXT("00:16:53:00:BE:3A", Bluetooth.getConnector());
} catch (IOException ex) {
System.out.println("no connection established");
}
System.out.println("connection successful");
System.out.println("#test# remote brick name: " + remoteNxt.getBrickName());
}
and here is the exceptions stacktrace:
- Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: lejos.nxt.NXT.getUserPages()I
at lejos.nxt.NXT.getUserPages(Native Method)
at lejos.nxt.Flash.<clinit>(Flash.java:18)
at lejos.nxt.SystemSettings.<clinit>(SystemSettings.java:30)
at lejos.nxt.comm.NXTCommDevice.loadSettings(NXTCommDevice.java:167)
at lejos.nxt.comm.NXTCommDevice.<clinit>(NXTCommDevice.java:20)
at bluemote.comm.RemoteControllServerPlus.connect(RemoteControllServerPlus.java:79)
Any suggestions to why this fails? Or is there a problem with my approach?
regards,
Dennis
