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

Wildcards in classpath does not work on command prompt.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 7
    • Fix Version/s: 8
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      FULL PRODUCT VERSION :
      java version "1.7.0"
      Java(TM) SE Runtime Environment (build 1.7.0-b147)
      Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP SP3 and Windows 7 SP1 64 bit

      A DESCRIPTION OF THE PROBLEM :
      Suppose there are jar files in ./lib/

      In Java 1.6, it was OK.
      set PATH=C:\Program Files (x86)\Java\jdk1.6.0_26\bin
      javac -cp "./lib/*" Main.java

      In Java 1.7, it does not work.
      set PATH=C:\Program Files (x86)\Java\jdk1.7.0\bin
      javac -cp "./lib/*" Main.java
      #ERROR


      REGRESSION. Last worked in version 6u26

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      On command prompt, run commands described above.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      class file is made.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Error message like "javac: ./lib/...jar is invalid flag." (in Japanese)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      set CLASSPATH=.;./lib/*
      javac Main.java

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ksrini Kumar Srinivasan
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: