
Signature
Kind regards,
Christophe Vanfleteren
Hi there ..
The simplest "Hello World" - called "Welcome" in this case, compiles OK
using javac, but will not run on the PC - although the generated class file
"Welcome.class" runs OK when loaded on to a Sun Ultra workstation, or an
Intel Solaris platform.
On the XP machine java cannot find the "Welcome" class.... I am told that
this is because I have not set the CLASSPATH ....
Regards
Fred
> > Hi there,
> >
[quoted text clipped - 18 lines]
> Kind regards,
> Christophe Vanfleteren
Andrew Thompson - 01 Feb 2004 18:06 GMT
"Fred Smith" ...
Hi Fred, could I ask you not to top-post?
It makes threads hard to understand.
..
> > > Is anybody here using the Sun / Forte Community Edition IDE ? - I am
> > > trying to get it going on Windows XP Home Edition, and I am not sure how
> > > to specify the "CLASSPATH" environment variable..
...
> The simplest "Hello World" - called "Welcome" in this case, compiles OK
> using javac, but will not run on the PC - although the generated class file
[quoted text clipped - 3 lines]
> On the XP machine java cannot find the "Welcome" class.... I am told that
> this is because I have not set the CLASSPATH ....
Do not go messing with environment variables
(which used to be the recommended solution)
Instead, try this command from the directory
where your class resides.
java -classpath . Welcome
This adds 'the current directory' ('.')
to the classpath.
HTH
--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
Fred Smith - 02 Feb 2004 21:13 GMT
er .... top-post ?
> "Fred Smith" ...
>
[quoted text clipped - 34 lines]
> * http://www.PhySci.org/codes/ Web & IT Help
> * http://www.1point1C.org/ Science & Technology
Andrew Thompson - 03 Feb 2004 03:08 GMT
"Fred Smith" ...
..
> er .... top-post ?
If you truly do not know what top-posting
is, Google it.
Jim Sculley - 04 Feb 2004 01:31 GMT
> Hi there ..
>
[quoted text clipped - 5 lines]
> On the XP machine java cannot find the "Welcome" class.... I am told that
> this is because I have not set the CLASSPATH ....
More likely, you have typed this:
java Welcome.class
when you should have typed this:
java Welcome
Jim S.

Signature
Remove my extraneous mandibular appendages to reply via email.