JDK-7073915 : Wildcards in classpath does not work on command prompt.
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2011-08-02
  • Updated: 2012-03-20
  • Resolved: 2012-02-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Relates :  
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