By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

Error at runtime in JDK 1.5.0_9 (J2SE)

P: 2
Hi...
im really new to java, and ive tried to program a simple HELLO WORLD app, which displays the text in the command line (im using Windows XP Pro, so its MS DOS). Everything is fine during compiling, but when i attempt to run, typing "java HelloWorldApp", java displays this message:

Exeption in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp

pleas can sum1 help...
thanks!!!;-)
Nov 14 '06 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 1,510
Hi...
im really new to java, and ive tried to program a simple HELLO WORLD app, which displays the text in the command line (im using Windows XP Pro, so its MS DOS). Everything is fine during compiling, but when i attempt to run, typing "java HelloWorldApp", java displays this message:

Exeption in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp

pleas can sum1 help...
thanks!!!;-)
could be a few things
(1) check that the class is called HelloWorldApp, not HelloWorldapp or HelloworldApp, etc. Java is case senstive so you must get the class correct.
(2) are you in directory which contains the HelloWorldApp.class file - use command dir to check
(3) is your current directory on the java classpath
Nov 14 '06 #2

P: 2
hi! thanks for the help! i'll make sure to check the name of the class file.
as i said, im really new to java, so i didnt understand what you meant by the "current directory on the java class path".
thanks once again, though!;-)
Nov 14 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.