Originally Posted by
0Pascal0
Hello
Today I learned about the package and add library's etc. I use Eclipse to make a new project en add the JAR files where the library's are. The thing is now, I know how to add library's but when I need to put the library of
"import demos.common.SimpleMoteFinder;" in it, it doesnt work.
What I've noticed is, that demos.common.SimpleMoteFinder is in a directory where there is no JAR file. The file in the directory wich need to be add is : SimpleMoteFinder. This file is still a .java file and not a .class file..... . But I dont know why this files hasnt been compiled yet? Do I mis something here?
How can you tell Eclipse to compile this file first?
I found a way to solve the problem to find the simplemotefinder. If you this tutorial:
Eclipse IDE: Importing Files into a Project then you will find out how to do it.
The next problem is something I dont understand, so I stop posting here and when I have to solution I wil post it here. See my problem errors:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/bluetooth/BluetoothStateException
at ircamera.SimpleMoteFinder.findMote(SimpleMoteFinde r.java:27)
at ircamera.IrCameraDemo.main(IrCameraDemo.java:43)
Caused by: java.lang.ClassNotFoundException: javax.bluetooth.BluetoothStateException
at java.net.URLClassLoader$1.run(URLClassLoader.java: 366)
at java.net.URLClassLoader$1.run(URLClassLoader.java: 355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:4 23)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
... 2 more
I think it has to do with the MS bluetooth stack I use. This doesnt work with the L2CAP protocol.