[EMAIL PROTECTED] wrote:
>
> Hi-
>
> I just downloaded and installed jdk1.2.2 on RH6.1. When trying to run
> some sample code, I get the following message:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> p1/Protection
>
> Here is what I have:
>
> jdk1.2.2 is installed in /usr/local. My path variable has
> /usr/local/jdk1.2.2/bin included. I have the CLASSPATH variable set as:
> CLASSPATH=/home/dad/MyJava
>
> The code I am running is in directory "p1" under "MyJava". One of the
> classes is Protection.java which declares a package p1.
>
> I compile using the command: java p1.Protection
You are running the interpreter not the compiler.
Insead use this ``javac pl/Portection.java''
--
Adios
Peter
-----------------------------------------------------------------
import std.Disclaimer; // More Java for your Lava, Mate.
T H E R E D A R M Y ! ! ! http://www.manutd.com/
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]