编译时如下:
Command : "C:\Program Files\Java\jdk1.5.0_11\bin\javac.exe" -verbose -O -classpath "G:;C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_11\lib\dt.jar;C:\Program Files\Java\jdk1.5.0_11\lib\tools.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunpkcs11.jar" -d "G:" G:\NIne.java
Directory : G:
[解析开始时间 G:\NIne.java]
[解析已完成时间 47ms]
[源文件的搜索路径: [G:, C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar, C:\Program Files\Java\jdk1.5.0_11\lib\dt.jar, C:\Program Files\Java\jdk1.5.0_11\lib\tools.jar, C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\dnsns.jar, C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\localedata.jar, C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunjce_provider.jar, C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunpkcs11.jar]]
[类文件的搜索路径: [C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar, C:\Program Files\Java\jdk1.5.0_11\jre\lib\jsse.jar, C:\Program Files\Java\jdk1.5.0_11\jre\lib\jce.jar, C:\Program Files\Java\jdk1.5.0_11\jre\lib\charsets.jar, C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\dnsns.jar, C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\localedata.jar, C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunjce_provider.jar, C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunpkcs11.jar, G:, C:\Program Files\Java\jdk1.5.0_11\lib\dt.jar, C:\Program Files\Java\jdk1.5.0_11\lib\tools.jar]]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(javax/swing/JFrame.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(javax/swing/WindowConstants.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/Object.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(javax/accessibility/Accessible.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(javax/swing/RootPaneContainer.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/awt/Frame.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/awt/MenuContainer.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/awt/Window.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/awt/Container.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/awt/Component.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/awt/image/ImageObserver.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/io/Serializable.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/String.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(javax/swing/JLabel.class)]
[正在检查 Nine]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/awt/GridLayout.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/awt/LayoutManager.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(javax/swing/JComponent.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/awt/PopupMenu.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/awt/Dimension.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(javax/swing/Icon.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/Comparable.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/CharSequence.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/Error.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/awt/HeadlessException.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/UnsupportedOperationException.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/RuntimeException.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/Exception.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/Throwable.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/util/EventListener.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/Class.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/StringBuilder.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/AbstractStringBuilder.class)]
[正在装入 C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar(java/lang/StringBuffer.class)]
[已写入 G:\Nine.class]
[总时间 578ms]
Process completed.
执行时:
Unrecognized option: -classpath-classpath
Could not create the Java virtual machine.
Process completed.
不能创建JAva 的虚拟机 为什么?????
我刚刚学习JAVA我在JC中指定了JDk的路径 运行Nine的程序时 出现上述情况请指教
[此贴子已经被作者于2007-5-28 16:41:14编辑过]