JDK-8028359 : asterisk in classpath does not work as expected on windows
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 7u9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • Submitted: 2013-03-20
  • Updated: 2013-11-14
  • Resolved: 2013-11-14
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version  " 1.7.0_09 " 
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Windows XP Pro SP3

A DESCRIPTION OF THE PROBLEM :
 " java -cp lib/* some.Main "  does not work, because java does load any jars from the lib directory as expected. An additional ; fixes the problem:  " java -cp lib/*; some.Main "  works as expected. This looks like a command line parsing problem for me. If not, please document this behaviour.


REPRODUCIBILITY :
This bug can be reproduced always.