各位高手请进
我装的是 C:\jdk1.6.0_10java_home =C:\jdk1.6.0_10
CLASSPATH =.;C:\jdk1.6.0_10\lib;C:\jdk1.6.0_10\lib\tools.jar
Path =C:\jdk1.6.0_10\jre\bin
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\123>java –version
Exception in thread "main" java.lang.NoClassDefFoundError: –version
Caused by: java.lang.ClassNotFoundException: –version
at (URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at (URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: 鈥搗ersion. Program will exit.
这么回事啊