Hello,
I've been cruising along nicely until I tried creating my first package. I'm working out of chapter 5 in Thinking in
Java and I'm having the following problem.
First, the preliminaries... I'm working on Windows 95 using JDK 1.3. My CLASSPATH is:
SET CLASSPATH=.;C:\jdk1.3\bin;C:\javaprog;C:\javaprog\javaranchcommon.zip;
In my javaprog directory I have the following file:
In the c:\javaprog\mypackage folder I have the following file
MyClass.java compiles fine, but I get the following error when I compile PackTest.java:
[Windows 95] C:\javaprog>javac PackTest.java
PackTest.java:6: cannot access MyClass
bad class file: .\MyClass.class
class file contains wrong class: mypackage.MyClass
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
new MyClass() ;
^
1 error
I have things setup the same way on a Win 2K system and it works fine, but I'm at a loss as to why it doesn't work on my home Win 95 system.
I have a suspicion that the solution to this is staring me in the face, but I'm not seeing it. I would appreciate any insight anyone here could offer.
Thanks in advance,
Pat B.