[5672] in java-interest
Re: Basic hello world program -fails
daemon@ATHENA.MIT.EDU (Charles Ryan)
Wed Feb 21 20:20:38 1996
To: Randolph Wicks <wicks@science.smsu.edu>,
Erik Sanchez <sancheze@rintintin.colorado.edu>
Date: Wed, 21 Feb 96 18:29:05 -0500
From: Charles Ryan <cryan@radix.net>
CC: "java-interest-digest@java.sun.com" <java-interest-digest@java.sun.com>
-- [ From: Charles Ryan * EMC.Ver #2.5.02 ] --
I stopped at my local bookstore today and looked at the book 'Learn Java in
21 days' (or whatever the title is). The problem is that the class for
HelloWorld's applet is not defined as 'public'. Not sure if that is your
problem or not... but that will cause a problem with most any JAVA browser.
Also, be sure that your CLASSPATH is set correctly in your autoexec.bat file
. It should read something like this: SET CLASSPATH = .;C:\JAVA\BIN;C:
\JAVA\LIB;C:\JAVA\PROGRAMS etc..
I was having this problem as well (plus the basic "Hello World" application
would not run). When I installed Java under Win 95, Java set my classpath
environment for me... however, it failed to include the initial . (period)
at the beginning of my classpath string. I put the period in at the
beginning of the path, and all my problems went away. Just a little FYI...
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com