The class file will only be ceated when you complie the java file hope this helps.
Main Topics
Browse All TopicsC:\>dir
Volume in drive C has no label.
Volume Serial Number is 1832-5062
Directory of C:\
10/05/2008 10:00 AM 0 AUTOEXEC.BAT
11/17/2008 09:55 PM <DIR> Brother
10/05/2008 10:00 AM 0 CONFIG.SYS
10/05/2008 09:55 AM 211 Copy of boot.ini
10/27/2008 06:49 PM <DIR> DELL
10/05/2008 10:09 AM <DIR> Documents and Settings
02/05/2009 01:36 PM <DIR> Inetpub
11/18/2008 10:56 PM <DIR> N360_BACKUP
02/06/2009 11:11 PM <DIR> Program Files
02/07/2009 10:49 AM <DIR> Temp_MyJava
02/07/2009 09:25 AM <DIR> WINDOWS
3 File(s) 211 bytes
8 Dir(s) 61,218,283,520 bytes free
C:\>cd temp_java
The system cannot find the path specified.
C:\>cd temp_myjava
C:\Temp_MyJava>dir
Volume in drive C has no label.
Volume Serial Number is 1832-5062
Directory of C:\Temp_MyJava
02/07/2009 10:49 AM <DIR> .
02/07/2009 10:49 AM <DIR> ..
02/07/2009 10:40 AM 450 HelloWorldApp.class
02/07/2009 09:58 AM 594 HelloWorldApp.java
2 File(s) 1,044 bytes
2 Dir(s) 61,218,283,520 bytes free
C:\Temp_MyJava>java HelloWorldApp
Exception in thread "main" java.lang.NoClassDefFoundE
name: helloworldapp/HelloWorldAp
at java.lang.ClassLoader.defi
at java.lang.ClassLoader.defi
at java.security.SecureClassL
at java.net.URLClassLoader.de
at java.net.URLClassLoader.ac
at java.net.URLClassLoader$1.
at java.security.AccessContro
at java.net.URLClassLoader.fi
at java.lang.ClassLoader.load
at sun.misc.Launcher$AppClass
at java.lang.ClassLoader.load
at java.lang.ClassLoader.load
Could not find the main class: HelloWorldApp. Program will exit.
C:\Temp_MyJava>set CLASSPATH=
C:\Temp_MyJava>java HelloWorldApp
Exception in thread "main" java.lang.NoClassDefFoundE
name: helloworldapp/HelloWorldAp
at java.lang.ClassLoader.defi
at java.lang.ClassLoader.defi
at java.security.SecureClassL
at java.net.URLClassLoader.de
at java.net.URLClassLoader.ac
at java.net.URLClassLoader$1.
at java.security.AccessContro
at java.net.URLClassLoader.fi
at java.lang.ClassLoader.load
at sun.misc.Launcher$AppClass
at java.lang.ClassLoader.load
at java.lang.ClassLoader.load
Could not find the main class: HelloWorldApp. Program will exit.
C:\Temp_MyJava>java helloworldapp
Exception in thread "main" java.lang.NoClassDefFoundE
name: helloworldapp/HelloWorldAp
at java.lang.ClassLoader.defi
at java.lang.ClassLoader.defi
at java.security.SecureClassL
at java.net.URLClassLoader.de
at java.net.URLClassLoader.ac
at java.net.URLClassLoader$1.
at java.security.AccessContro
at java.net.URLClassLoader.fi
at java.lang.ClassLoader.load
at sun.misc.Launcher$AppClass
at java.lang.ClassLoader.load
at java.lang.ClassLoader.load
Could not find the main class: helloworldapp. Program will exit.
C:\Temp_MyJava>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
as your class helloworldapp is in package
1) you should create and place the java into subdirectory (helloworldapp)
2) create a MANIFEST file(helloworldapp.txt) for compile you .java file
3) compile it by jar cvmf helloworldapp.txt helloworldapp.jar .\helloworldapp\*
4) run it by java -jar helloworldapp.jar
more reference...
http://csdl.ics.hawaii.edu
note : all the files are attached , you should place this question in java zone.....
or run it from parent directory of the file HelloWorldApp.class
C:\Documents and Settings\fsze88\Lb\experts
C:\Documents and Settings\fsze88\Lb\experts
08/02/2009 09:29 <DIR> .
08/02/2009 09:29 <DIR> ..
08/02/2009 09:32 450 HelloWorldApp.class
08/02/2009 09:29 626 HelloWorldApp.java
2 ”H 1,076 MCD
C:\Documents and Settings\fsze88\Lb\experts
C:\Documents and Settings\fsze88\Lb\experts
Hello World!
Business Accounts
Answer for Membership
by: sunithnairPosted on 2009-02-07 at 12:45:05ID: 23580132
Did you compile your javaclass? you need to compile the class before you can run it
try running javac HelloWorldApp.java