安裝jdk1.6失敗了。
32位的centos6.9jdk-6u31-linux-i586.bin(83294kb)
# java –version
Exception in thread "main" java.lang.NoClassDefFoundError: –version
Caused by: java.lang.ClassNotFoundException: –version
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: –version.Program will exit. 又好了,,,
https://i.loli.net/2019/01/11/5c382c4f3d1e3.png 有可能环境变量设置有问题,可以参考一些:https://bbs.vpser.net/thread-18202-1-1.html#pid56985
页:
[1]