Name: mc57594 Date: 02/26/97
I create two packages trs.msg and trs.util. I zip them into
a package file zip -0 trs.zip trs/msg/*.java trs/util/*.java.
the zip file output goes to my home directory
(/home/stentu1/stent/trs.zip).
My class path is .:/home/stentu1/stent/trs.zip
I run javac on a program that imports trs.msg.*;
javac test.java
test.java:1: Package trs.msg not found in import.
import trs.msg.*;
^
1 error
However, if I set the CLASSPATH to /home/stentu1/stent/java
(which has the subdirs trs/msg and trs/util
javac works fine.
I do NOT need to do this for the invokation of java on
the executable after the compilation. Just having the
CLASSPATH set to .:/home/stentu1/stent/trs.zip is enough
to resolve the
company - Davox Corporation , email - ###@###.###
======================================================================
- relates to
-
JDK-1262375 javac does not find packages in additional zip files.
-
- Closed
-