我尝试在编译 java 源代码时添加 -bootclasspath 选项,如下所示:
javac -classpath lib/* -target 1.6 -source 1.6 -bootclasspath /usr/lib/jvm/java-7-oracle/lib/*.jar Hello.java
编译时出现以下错误:
javac: invalid flag: /usr/lib/jvm/java-7-oracle/lib/dt.jar
Usage: javac <options> <source files>
use -help for a list of possible options
我应该如何添加 bootclasspath 参数?