in which directory the file is located , accordingly change the directory.
was the program compiled at first place?

On Fri, Aug 6, 2010 at 10:09 PM, kalpana koushik
<[email protected]>wrote:

> Hello to all of you,
>
> Thanks to help me for installation of java in ubuntu.But now i face another
> problem and do not know what went wrong??
> After installing Java,I just create a simple java program and tried to
> compile and run it.
> My java program is compiling,and create a class file of my java program but
> when i tried to run the program it giving me error which :--
>
> *$ java /home/kalpana/practice/First
> 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.
> *
>
> So can anybody help me to solve this error.....?????
>
>
> Thanks in advance
>
>
>
>  --
> l...@iitd - http://tinyurl.com/ycueutm
>



-- 
Kumar Anurag

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to