Wednesday, May 19, 2010

Re: [Java] NoClassDefFoundError exception

 

try:
java -cp . first

We use the "dot" to tell the JVM to look for compiled classes at the local directory.
[]'s

Waldir Jr
==================================================

ICQ# 28558908 / MSN: wpjr2@yahoo.com / Skype: waldir.pires / GTalk: waldir.pires

"Delight yourself in the Lord, and He will give you the desires of your heart" Psalms 37:4

________________________________
From: André A. Santos <ti.andreasantos@gmail.com>
To: Java_Official@yahoogroups.com
Sent: Tue, May 18, 2010 6:41:36 PM
Subject: Re: [Java] NoClassDefFoundError exception

Go to Eclipse IDE... Don't spend your time working on Command Line, in-real
world's business lol I am not sure if I wrote ok so, you won't use it
anyme...

André AS

2010/4/25 krunal bhatt <bhatt.krunal@gmail.com>

>
>
> Hello friends,
> i installed jdk1.6.5_05 and jre1.6.5_05 in my system and just to check
> whether the installation is ok or not i wrote a simple "Hello World". When
> i
> compile it using javac , it shows no error but when i run the program i get
> the following error.
>
> D:\projects\Java_Projects>*javac first.java*
>
> D:\projects\Java_Projects>*java first*
> *Exception in thread "main" java.lang.NoClassDefFoundError: first
> Caused by: java.lang.ClassNotFoundException: first
> 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)
>
> *D:\projects\Java_Projects>
>
> please provide solution for this..
> --
> Regards,
> Krunal Bhatt
>
> [Non-text portions of this message have been removed]
>
>
>

--
André Asantos

Skype - andredecotia
MSN - andre_decotia@hotmail.com

"Sonhe, acredite, projete e incorpore. Nós somos todos dias simplesmente o
que acreditamos ser"
André AS

if (1 != 1){
throw new MelhorPerguntarParaOAndreException();
}

[Non-text portions of this message have been removed]

------------------------------------

Visit http://aiaiai.com or http://jgame.org for more groups to join.
Java Official Group is created for the following topics: Java 2 Enterprise Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME, XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
Whoever posts spam / ads / job related message will be BANNED IMMEDIATELYYahoo! Groups Links

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
Visit http://aiaiai.com or http://jgame.org for more groups to join.
Java Official Group is created for the following topics: Java 2 Enterprise Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME, XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
Whoever posts spam / ads / job related message will be BANNED IMMEDIATELY
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.


Get great advice about dogs and cats. Visit the Dog & Cat Answers Center.


Hobbies & Activities Zone: Find others who share your passions! Explore new interests.

.

__,_._,___

No comments:

Post a Comment