[3664] in java-interest

home help back first fref pref prev next nref lref last post

Re: Dependencies

daemon@ATHENA.MIT.EDU (David Geary)
Tue Nov 21 20:15:53 1995

Date: Tue, 21 Nov 1995 12:58:44 -0700
From: David.Geary@Central.Sun.COM (David Geary)
To: java-interest@java.Eng.Sun.COM

Folks,

  Thanks for all your replies; I've distilled this to it's simplest form,
and am still stuck:

  In package java.awt, I've added 2 classes:  A and B:

--------------------------------------------------------------------------------
trilby >> cat A.java
package java.awt;

import B.java;

class A {
   B b = null;
   A() {
   }
}

trilby >> cat B.java
package java.awt;

import A.java;

class B {
   A a = null;
      B() {
      }
}

--------------------------------------------------------------------------------
trilby >> javac A.java
A.java:3: Class B.java not found in import.
import B.java;
^
A.java:6: Class java.awt.B not found in type declaration.
   B b = null;
       ^
2 errors

--------------------------------------------------------------------------------
  Some folks have suggested that I compile both at the same time:

--------------------------------------------------------------------------------
trilby >> javac A.java B.java
A.java:3: Class B.java not found in import.
import B.java;
^
B.java:3: Class A.java not found in import.
import A.java;
^
2 errors

  Setting CLASSPATH to a variety of directories (including the awt directory)
seems to have no effect.

  I've tried all sorts of things:  taking out the package declarations and
import statements for instance, all of which obviously have no effect.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 David Geary                           "That's totally feather-pluckin insane"
 geary@rmtc.Central.Sun.COM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post