You don't need classes.zip or rt.jar in your classpath, but you do need
the directory containing your HelloWorldApp program in
your classpath.

Hope this helps.

jason


clyde jones wrote:

> Nope this didn't work - I still get the same error.
>
> $ java HelloWorldApp
> Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
>
>   I installed the Netbeans IDE which requires that JAVA_HOME and
> CLASSPATH be set.  I still get the same error if I unset them.
>
> I will ask blackdown to update their FAQ which has the classes in
> classes.zip instead of rt.jar, which lead to some of my confusion.
>
> Thanks
>
> At 10:35 PM -0800 01/31/2000, Peter Graves wrote:
> >Do this:
> >
> >     java HelloWorldApp
> >
> >instead of this:
> >
> >     java HelloWorldApp.class
> >
> >If you're using 1.2.2 you don't need a CLASSPATH (at least not for
> >this).
> >
> >The runtime classes are in .../jdk1.2.2/jre/lib/rt.jar, not
> >../classes.zip.
> >
> >-Peter
> >http://armedbear.org
>
> --
> Pray to God, But Hammer Away
>      - Spanish Proverb
>            Clyde Jones
>
> Clyde Jones
> Http://www.geocities.com/clyde-jones
> mailto:[EMAIL PROTECTED]
> Cell 443.226.6054
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to