 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Fred Smith Guest
|
Posted: Sun Feb 01, 2004 4:33 pm Post subject: Sun Forte / ONE Community Edition class lib ? |
|
|
Hi there,
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..
From the command line I get the " Exception in thread "main"
java.lang.NoClassFoundError" ..message
Any suggestions ?
Regards
Fred
|
|
| Back to top |
|
 |
Christophe Vanfleteren Guest
|
Posted: Sun Feb 01, 2004 4:37 pm Post subject: Re: Sun Forte / ONE Community Edition class lib ? |
|
|
Fred Smith wrote:
| Quote: | Hi there,
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..
From the command line I get the " Exception in thread "main"
java.lang.NoClassFoundError" ..message
Any suggestions ?
Regards
Fred
|
What command are you executing exactly? What are you trying to do? And could
you show more of the NoClassDefFoundError? It actually tells you which
class couldn't be found, you know.
--
Kind regards,
Christophe Vanfleteren
|
|
| Back to top |
|
 |
Fred Smith Guest
|
Posted: Sun Feb 01, 2004 5:53 pm Post subject: Re: Sun Forte / ONE Community Edition class lib ? |
|
|
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
"Christophe Vanfleteren" <c.v4nfl3t3r3n (AT) pandora (DOT) be> wrote
| Quote: | Fred Smith wrote:
Hi there,
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..
From the command line I get the " Exception in thread "main"
java.lang.NoClassFoundError" ..message
Any suggestions ?
Regards
Fred
What command are you executing exactly? What are you trying to do? And
could
you show more of the NoClassDefFoundError? It actually tells you which
class couldn't be found, you know.
--
Kind regards,
Christophe Vanfleteren
|
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Sun Feb 01, 2004 6:06 pm Post subject: Re: Sun Forte / ONE Community Edition class lib ? |
|
|
"Fred Smith" ...
Hi Fred, could I ask you not to top-post?
It makes threads hard to understand.
| Quote: | Fred Smith wrote:
...
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
"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 ....
|
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
|
|
| Back to top |
|
 |
Fred Smith Guest
|
Posted: Mon Feb 02, 2004 9:13 pm Post subject: Re: Sun Forte / ONE Community Edition class lib ? |
|
|
er .... top-post ?
"Andrew Thompson" <SeeMySites (AT) www (DOT) invalid> wrote
| Quote: | "Fred Smith" ...
Hi Fred, could I ask you not to top-post?
It makes threads hard to understand.
Fred Smith wrote:
..
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
"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 ....
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
|
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Tue Feb 03, 2004 3:08 am Post subject: Re: Sun Forte / ONE Community Edition class lib ? |
|
|
"Fred Smith" ...
...
| Quote: | er .... top-post ?
|
If you truly do not know what top-posting
is, Google it.
|
|
| Back to top |
|
 |
Jim Sculley Guest
|
Posted: Wed Feb 04, 2004 1:31 am Post subject: Re: Sun Forte / ONE Community Edition class lib ? |
|
|
Fred Smith wrote:
| Quote: | 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 ....
|
More likely, you have typed this:
java Welcome.class
when you should have typed this:
java Welcome
Jim S.
--
Remove my extraneous mandibular appendages to reply via email.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|