From: Michael H. <pat...@ya...> - 2009-01-19 20:26:10
|
Excuse me for asking this silly question but perhaps someone can help me with this. I am after all a newbie. I am running Windows (all my other machines are LINUX so please excuse me for that bad start) I installed eclipse. I installed Java SDK. The windows path includes F:\Sun\SDK\jdk\bin. I do not have a classpath set. I checked out JsynthLib and it is now in F:\workspace\JsynthLib. When I go to the JsynthLib directory, I can execute: F:\workspace\JSynthLib>javac synthdrivers\KorgHawk800\KorgHawk800Device.java F:\workspace\JSynthLib> Although I get no output, it does not produce any error. Should there be success message? Then, I go to execute: F:\workspace\JSynthLib>java core\DeviceListWriter.java Exception in thread "main" java.lang.NoClassDefFoundError: core\DeviceListWriter /java Caused by: java.lang.ClassNotFoundException: core\DeviceListWriter.java at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Could not find the main class: core\DeviceListWriter.java. Program will exit. F:\workspace\JSynthLib> I am guessing that this is a classpath or some other simple error. Can someone suggest what I am doing wrong or should be doing? Many thanks, Mike. |