473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Error at runtime in JDK 1.5.0_9 (J2SE)

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
2 1880
horace1
1,510 Expert 1GB
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
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

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

Similar topics

1
by: Phil | last post by:
I went to sun to get J2SE 1.4.2 and fount only J2SE v 1.4.2 with NetBeans IDE v 3.5 Cobundle is there a place for just 1.4.2 and no netbeans?
1
by: Naresh Agarwal | last post by:
Hi Is there any difference between JDK and J2SE? What is standard name of Java distribution - JDK or J2SE? Also when we say JDK 1.3, Does it mean JDK 1.3.x or a specific version say...
1
by: tmb | last post by:
I'm a newbie to Java. At http://java.sun.com/j2se/1.4.2/download.html I see I can download... NetBeans IDE + J2SE SDK as a 'bundle' I beleive is both NetBeans and the Java SDK... My...
2
by: danthefirst2000 | last post by:
Guys, I downloaded J2SE v 1.4.2_05 SDK from the sun site. Installed it fine on my laptop which runs on XP. Now I want to start writing some small programs and play around a bit. I also bought...
1
by: eBob.com | last post by:
Well I am now on page 84 of Bruce Eckel's "Thinking in Java". (... having made significant progress since the help you guys gave me in response to my last question about page 34.) Here he...
8
by: Data Goob | last post by:
I searched far and wide for more information on how to correct this problem, but did not find any information on what to do. We have successfully installed DB2 8.1 on Linux. SuSE 9.0. Kernel...
2
by: Tim Murray | last post by:
First of all, I don't know much about Java, even its naming and version numbering nomenclature, and second, if there is a better group to ask this in, please let me know. System is Mac with...
0
by: JeanReno | last post by:
Hello. I can't download J2SE SDK from the Sun Java site. I think the reason is authorization.Maybe I'm in a country is not authorized to download files from this site. Is there any other sites...
0
by: bill gates | last post by:
I was trying to use msbee to build an old project. I don't want to upgrade to dotnet2.0. Is there any way to get this to compile using DevStudio 2005 using dotnet1.1. ? Build FAILED....
2
by: Michael Landberg | last post by:
Hi I am trying almost the whole afternoon to find the right version ( 1.6 ) of jre or jdk. I cannot find it on the java.sun.com website. Can someone please give me the right url for the install...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.