Patch to resolve symbol link to jperf.sh
GoogleCodeExporter opened this issue · 2 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Create a symbol link to jperf.sh, i.e. /usr/local/bin/jperf
2. Run /usr/local/bin/jperf
What is the expected output? What do you see instead?
We should see jperf GUI pop out after that command, however we got this
error message:
Exception in thread "main" java.lang.NoClassDefFoundError:
net/nlanr/jperf/JPerf
Caused by: java.lang.ClassNotFoundException: net.nlanr.jperf.JPerf
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(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: net.nlanr.jperf.JPerf. Program will exit.
What version of the product are you using? On what operating system?
Jperf 2.0.2, Ubuntu 9.04 Linux.
Please provide any additional information below.
You can find the patch to fix this error in the attachment.
Original issue reported on code.google.com by solrex
on 22 Jul 2009 at 3:21
Attachments:
GoogleCodeExporter commented
This doesn't work for MAC OS X 10.6 which has almost the same issue:O(
Exception in thread "main" java.lang.NoClassDefFoundError: net/nlanr/jperf/JPerf
Caused by: java.lang.ClassNotFoundException: net.nlanr.jperf.JPerf
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)
Original comment by dizzyk...@googlemail.com
on 29 Jun 2011 at 12:48
GoogleCodeExporter commented
Mikes-MacBook-Pro:jperf-generic mikev$ ./jperf.sh
Error: Could not find or load main class net.nlanr.jperf.JPerf
Same error here on Mac OSX 10.10. Any ideas?
Original comment by m.verb...@gmail.com
on 14 Nov 2014 at 2:06