[5654] in java-interest
Re: Basic hello world program - setup tips
daemon@ATHENA.MIT.EDU (dc)
Wed Feb 21 12:07:26 1996
Date: Wed, 21 Feb 1996 07:18:30 -0800
To: Erik Sanchez <sancheze@rintintin.colorado.edu>
From: dc <dc@symbolicsoft.com>
Cc: java-interest@java.sun.com
Under win95, it should work vis:
javac <file>.java -- your source file ends in '.java'
-- compiler creates <file>.class
appletviewer <file>.html -- your html file should load
<file>.class
Make sure all capitalisation is correct:
javac helloWorld.java --ok
javac Helloworld.java -- may compile but not create the class, or
whatever...
I found it easiest to put everything in the root level of the 'classes'
directory.
Make sure your 'CLASSPATH' variable is pointing to the right place, where
your classes are.
I have a line in my autoexec.bat, but you probably installed to a different
place.
set CLASSPATH=C:\dev\jdk\classes\
(remember, if you set this in a dosbox, its only valid for that window)
When you start using packages it surprisingly gets a lot easier...
___________________________________________________________________
/\ dave 'dc' collier
/_/\ Symbolic Software, Inc.
/_\_ \ dc@SymbolicSoft.com
/___/__\ tel (415) 546 1295
use your Head or lose your Mind! http://www.BurnCycle.com
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com