Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2004

Tip: Looking for answers? Try searching our database.

Sun Forte / ONE Community Edition class lib ?

Thread view: 
Fred Smith - 01 Feb 2004 16:33 GMT
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
Christophe Vanfleteren - 01 Feb 2004 16:37 GMT
> Hi there,
>
[quoted text clipped - 10 lines]
>
> 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.

Signature

Kind regards,
Christophe Vanfleteren

Fred Smith - 01 Feb 2004 17:53 GMT
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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.