| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |
Date: Tue, 20 Feb 1996 18:50:11 -0700 From: Erik Sanchez <sancheze@rintintin.colorado.edu> To: java-interest-digest@java.sun.com < I recently bought the book "Teach yourself Java in 21 days", and am < experiencing a problem immediately at the beginning of the book. The basic < "Hello World" program compiles fine, but when I try to execute it with < "java HelloWorld", I get an error that says "can't find class/HelloWorld < class". What gives? Charles, I just bought the same book today and after working through the first "day," I thought about your question. First of all, put the HelloWorld in quotes. Like this: java "HelloWorld" Since the class name is more than 8 characters some dos apps have a hard time with it. Secondly, don't include the .class extension or else you'll get the same error message. One more thing, I can't get the HelloWorldApplet to work (mine or the supplied code). It compiles but won't display on netscape or the appletviewer. I can however get the second day app to work etc.. go figure? I hope this is timely enough to help a fellow java novice. Also, this is my first "reply" so if I'm doing something wrong someone PLEASE tell me. Erik - This message was sent to the java-interest mailing list Info: send 'help' to java-interest-request@java.sun.com
| home | help | back | first | fref | pref | prev | next | nref | lref | last | post |