[1828] in java-interest
Importing Classes into Applications
daemon@ATHENA.MIT.EDU (George E Crawford)
Mon Sep 18 16:31:02 1995
From: George E Crawford <gec2@Ra.MsState.Edu>
Date: Mon, 18 Sep 1995 12:19:08 -0500
To: java-interest@java.sun.com
I have a class (called Stock) that I'd like to import into another class
(StockTest).
In class Stock, I have the following package statement:
package crawford.prata_project;
In class StockTest (which is to use an instance of class Stock), I have:
import crawford.prata_project.Stock;
I have successfully compiled Stock.java. When I try to compile StockTest.java,
I get the following error:
Class crawford.prata_project.Stock not found in type declaration.
I compiled StockTest.java by simply typing: javac StockTest.java
I even tried setting CLASSPATH.
Any help is greatly appreciated,
George
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com