Quoting Orlando Andico <[EMAIL PROTECTED]>:

> $ /opt/jdk1.2.2/bin/java hello.class
> Exception in thread "main" java.lang.NoClassDefFoundError: hello/class

>From previous posts, according to Orly, "java hello" does not work
and setting the CLASSPATH variable does not work either. One other
possibility is to set the JAVA_HOME and PATH variables.  Say,

export JAVA_HOME=/opt/jdk1.2.2
export PATH="$PATH:$JAVA_HOME/bin"

Then give the command

java ./hello

Good luck!

**PMana


-------------------------------------------------
This mail sent through IMP: mail.ateneo.net

-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to