Hi all,
I am just jumping back to
Java after a 4 years break.
Here's my query:
I am playing around with a simple class of mine.
It is compiled for the package My.Pckg and is
called MyClass. I now place the .class file in the
lib\ext dir of the jre (including directory structure).
Now I have another class (AnotherClass) that instantiates
an instance of MyClass ( MyClass mc = new MyClass(); ).
I import the package "import My.Pckg.*;" in the java file.
But ... when I compile AnotherClass.java I reaceive the
message that the passsage does not exist.
OK, it works if I pass the lib\ext path to "javac" via the
"-classpath" option. But shouldn't the java-compiler *know*
where the ext dir is? Or are my system variables broken,
but then nothing would work?
What am I doing wrong?
Thanks in advance, Stuart