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

Wildcards in classpath does not work on command prompt.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8
    • 7
    • tools
    • x86
    • windows_xp

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: