Thanks - that did the trick.

  I needed to set CLASSPATH to
    CLASSPATH=/usr/local/jdk1.2.2/jre/:.

So if I understand this correctly, I got the error because the local 
directory was NOT in the CLASSPATH; so java could not find the class 
I created in my program and threw that exception.

So despite what the install README says; assuming an install 
directory of /usr/local/jdk1.2.2, the env variables need to be set to:

PATH=$PATH:/usr/local/jdk1.2.2/bin:
CLASSPATH=/usr/local/jdk1.2.2/jre/:.
JAVA_HOME=/usr/local/jdk1.2.2

Thanks
  - hope everyone's advice helps all the other newbies out there



At 9:54 AM -0600 02/01/2000, Jason Blair wrote:
>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
>  >
>  > ----------------------------------------------------------------------
>  > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>  > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
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]

Reply via email to