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
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
- duplicates
-
JDK-7146424 Wildcard expansion for single entry classpath
- Closed
- relates to
-
JDK-6279342 classpath is allowed to set to *.jar during compilation
- Closed