[387] in java-interest
Newbie question about classpath and interfaces
daemon@ATHENA.MIT.EDU (Jake Kesinger)
Mon Jun 19 13:04:24 1995
Date: Mon, 19 Jun 1995 09:48:15 -0700 (PDT)
From: Jake Kesinger <jake@blegga.freerange.com>
To: java-interest@java.sun.com
Hi, please bear with me.
I've defined my own class Complex with an interface ComplexType.
It compiled okay and c:\Html\classes now has the appropriate .class
files. Now I want to have objects of type Complex in Fractype.java
in the same directory.
I have CLASSPATH set to c:\Html\classes;c:\hotjava\classes.
When I compile with -verbose I see all the standard classes
being loaded, but Complex.class is never.
I am currently importing both Complex and ComplexType (have tried all
other combinations), but am unable to get complex variables
(I've tried Complex, Complex.ComplexType, Complex.Complex, ComplexType,
ComplexType.Complex, and ComplexType.ComplexType).
The declaration for ComplexType looks like:
public interface ComplexType
and for Complex:
public class Complex implements ComplexType
I tried copying Complex*.class into c:\hotjava\classes\, but that just
caused a fatal exception in javac.
Please, what am I doing wrong?
--Jake
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com