On Fri, Aug 6, 2010 at 10:09 PM, kalpana koushik <[email protected]> wrote: [...] > > Exception in thread "main" java.lang.NoClassDefFoundError: > /home/gunjan/practice/First > Caused by: java.lang.ClassNotFoundException: .home.gunjan.practice.First > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > Could not find the main class: /home/gunjan/practice/First. Program will > exit.
Did you read the error? Its self explanatory. You are trying to run: $ java /home/kalpana/practice/First And the error is: Could not find the main class: /home/gunjan/practice/First. -- l...@iitd - http://tinyurl.com/ycueutm
