[3382] in java-interest
organization of class path
daemon@ATHENA.MIT.EDU (Gary Aitken)
Thu Nov 9 23:23:25 1995
Date: Thu, 9 Nov 1995 18:29:45 -0700
From: garya@village.org (Gary Aitken)
To: java-interest@java.sun.com
It seems that one should be able to build a package in a single directory
without applying a special CLASSPATH to get it to compile. However, this
doesn't seem to be the case.
Consider a directory MyPkg which contains .java files for the classes
in MyPkg. Seems like one should be able to:
cd MyPkg
javac MyClass.java
and have it work, for all files *.java which look like:
Package MyPkg
class MyClass {
}
All classes in MkPkg are automatically supposed to be imported.
However, CLASSPATH must include ".." for this to work.
I was going to suggest that ".." be included in the default CLASSPATH,
but unfortunately this also gets you any other packages which happen to
be in "..", which is not particularly desireable. Is there a way out
of this delimma?
Gary Aitken garya@village.org
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com