Hi all,

I am new in JAVA and need some help here.  I had installed JDK1.2.1 and
complete all the setting necessary.  My problem here is that I can
compile a simple java program or servlet program and I can run
appletviewer to view the java applet or run the servlet through my web
server.  However, I cannot run my java program on DOS prompt.  e.g.  I
am testing a simple java program called HelloWorld.java

class HelloWorld {
 public static void main(String args[ ]){
 System.out.println("Hello World");
      }
}

There is no error during compilation but everything I type "java
HelloWorld" on the dos prompt, it will gives me this error:
"Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld".

BTW, I am using Windows NT4.

Please advice !

Regards,
Florence

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to