JDK-6444042 : jvm and java compile can recursively load jars from a specified directory
  • Type: Enhancement
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-06-27
  • Updated: 2010-04-02
  • Resolved: 2006-06-27
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
A command-line parameter such as -lib_path should be added to java.exe and javac.exe. This value indicates the repository of jars instead of making users specify them one by one. Java compile and JVM can automatically form a classpath by scanning the certain location.

JUSTIFICATION :
Once the amount of referenced jars increases in a java software, users should set the classpath property manually, it's a boring and repeated work.

Comments
EVALUATION This feature has been added in Mustang as "class-path wilcards" (bug 6268383). To use the feature with the java or javac commands, use "-cp foo/*" to add all jar files in directory "foo" (make sure the * is quoted properly so it is not expanded by your shell).
27-06-2006