我花了大约 5 个小时谷歌搜索,但找不到解决方案。
我尝试在我的所有计算机上安装 jperf,并且除了 2 之外的所有计算机都安装得很好。但是那两个我不能强迫跑。
一个是 XP Pro(就像我的一半电脑一样),第二个是 XP Home(就像我的另一半电脑一样)
当我运行 jperf.bat - 命令行窗口出现和消失。然后什么也没有发生。
java.exe 在路径中 - 键入 java 会显示正确的结果。
再次编辑
现在我可以看到错误:
C:\JPERF-~1.2>java -classpath jperf.jar;lib\forms-1.1.0.jar;lib\jcommon-1.0.10.j
ar;lib\jfreechart-1.0.6.jar;lib\swingx-0.9.6.jar net.nlanr.jperf.JPerf
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jdesk
top/swingx/JXTaskPaneContainer
at net.nlanr.jperf.JPerf$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jdesktop.swingx.JXTaskPaneConta
iner
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 15 more
那么,我们现在能做什么呢?什么不见了???