Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

error importing with javac

843810Nov 21 2006 — edited Nov 21 2006
I am trying to compile code which was last compiled under JDK 1.2 (!). The code consistst of 2 packages - one is dependent upon the other.

The low-level package (aka Utils) builds without error. However, the other lib generates an error when it reaches an import statement of the 1st package. See below:

C:\GUITools>javac -cp .;C:\Utils *.java
CalendarTable.java:8: package Utils does not exist
import Utils.*;

For kicks, I placed the Utils.jar file into the GUITools directory. The Utils package was still not found.

I have set CLASSPATH is include both directiores in question. This code used to complie and run. So the question is: is my environment configured incorrectly? Or are there new requirements imposed by ver 1.5 of javac.exe?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2006
Added on Nov 21 2006
4 comments
791 views