JDK 1.1 beta javac Compiling class - claims class already exists
We have classes that compile fine under JDK 1.0.2, but will not under JDK 1.1 beta.
The following is the relevant portion of the build:
Making java classes in /export/src/remon_expert/sfbg/src/dnd/tests
rm -f ../../../src/classes/dndTest/*.class
javac -g -d ../../../src/classes -classpath .:..:../../classes:/usr/java/lib/classes.zip:/usr/JWS/JDK/classes:/usr/JWS/JDK/lib/classes.zip TestDnD.java TestDnDArea.java TestDnDFrame.java
TestDnDFrame.java:11: Superclass DnDFrameBase of class TestDnDFrame not found. <======= Yet Another Problem ========================
public class TestDnDFrame extends DnDFrameBase {
^
TestDnDArea.java:12: Interface DnDTarget of class TestDnDArea not found.
public class TestDnDArea extends Panel implements DnDSource, DnDTarget {
^
TestDnDArea.java:12: Interface DnDSource of class TestDnDArea not found.
public class TestDnDArea extends Panel implements DnDSource, DnDTarget {
^
..//DnDCoordinator.java:22: Class dnd.DnDCoordinator already defined in DnDCoordinator.java. <=========== Here's the problemCompiling class =====
public class DnDCoordinator {
^
TestDnD.java:14: Class DnDCoordinator not found in type declaration.
private DnDCoordinator _coordinator;
^
TestDnD.java:17: Class DnDCoordinator not found in type declaration.
_coordinator = new DnDCoordinator();
^
6 errors
*** Error code 1
See the attachments for the source.
We have classes that compile fine under JDK 1.0.2, but will not under JDK 1.1 beta.
The following is the relevant portion of the build:
Making java classes in /export/src/remon_expert/sfbg/src/dnd/tests
rm -f ../../../src/classes/dndTest/*.class
javac -g -d ../../../src/classes -classpath .:..:../../classes:/usr/java/lib/classes.zip:/usr/JWS/JDK/classes:/usr/JWS/JDK/lib/classes.zip TestDnD.java TestDnDArea.java TestDnDFrame.java
TestDnDFrame.java:11: Superclass DnDFrameBase of class TestDnDFrame not found. <======= Yet Another Problem ========================
public class TestDnDFrame extends DnDFrameBase {
^
TestDnDArea.java:12: Interface DnDTarget of class TestDnDArea not found.
public class TestDnDArea extends Panel implements DnDSource, DnDTarget {
^
TestDnDArea.java:12: Interface DnDSource of class TestDnDArea not found.
public class TestDnDArea extends Panel implements DnDSource, DnDTarget {
^
..//DnDCoordinator.java:22: Class dnd.DnDCoordinator already defined in DnDCoordinator.java. <=========== Here's the problemCompiling class =====
public class DnDCoordinator {
^
TestDnD.java:14: Class DnDCoordinator not found in type declaration.
private DnDCoordinator _coordinator;
^
TestDnD.java:17: Class DnDCoordinator not found in type declaration.
_coordinator = new DnDCoordinator();
^
6 errors
*** Error code 1
See the attachments for the source.
- duplicates
-
JDK-4019348 javac does not diagnose bad classpath
- Closed