What steps will reproduce the problem? 1.Compiling has got no problem. But when i want to run the project with the following command io got the errors: [reza@localhost blue]$ java -cp ./bluecove-2.1.0.jar:./bluecove-bluecove-gpl-2.1.0.jar RemoteDeviceDiscovery Exception in thread "main" java.lang.NoClassDefFoundError: RemoteDeviceDiscovery Caused by: java.lang.ClassNotFoundException: RemoteDeviceDiscovery at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:323) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:268) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) Could not find the main class: RemoteDeviceDiscovery. Program will exit.
Comment #1
Posted on Mar 31, 2010 by Massive HorseRemoteDeviceDiscovery is your class. Add it to classpath.
Status: Invalid