Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4034985

javac not honoring CLASSPATH like java

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P3
    • None
    • 1.1
    • tools
    • None
    • sparc
    • solaris_2.5.1

    Description



      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 - ###@###.###
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              tturnidgsunw Todd Turnidge (Inactive)
              mchamnessunw Mark Chamness (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: