Re: Jperf problem
rsenykoff --at-- harrislogic.com escribió:
>>I'm really interested in using Iperf for network research. I would like
>>to use it with Jperf as i've tried it under Windows and works very well.
>>
>>
>
>
>
>>The thing is i need to run it on Linux too but am getting the following
>>errors:
>>
>>Exception in thread "main"
>>java.lang.ArrayIndexOutOfBoundsException: 2
>> at JperfGUI.<init>(JperfGUI.java:141)
>> at Jperf.main(Jperf.java:38)
>>
>>I am running Jperf wih the following command as instructed on the
>>
>>
>webpage:
>
>
>>headbangc1:/home/cscott/backup/benchmarking/jperf-1.0#java -classpath
>>./jcommon-0.7.2.jar:./jfreechart-0.9.6.jar:./jperf.jar: Jperf
>>
>>All .jar's are in the path, and iperf works correctly. My OS is Debian
>>GNU/Linux with a 2.4.27-1-386 kernel running jre1.5.0_01
>>
>>Could someone point me in the right direction? Any help would be greatly
>>
>>
>
>
>
>>appreciated.
>>Cheers.
>>
>>
>>
>Is iperf in your $PATH ?
>
>Try
>
>echo $PATH
>
>and see if iperf is in there. If not,
>
>export PATH=$PATH:/path/to/iperf
>
>and see if the errors persist.
>
>If this fixes it, add it to your .bashrc file (found in your user's home
>directory)
>
>-Ron
>
>
>
>
>
Thanks for the quick reply Ron.
iperf is indeed in my PATH variable.
headbangc1:/home/cscott/downloads/jperf-1.0# cat $PATH
cat:
/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/usr/java/jre1.5.0_01/bin:
No existe el fichero o el directorio
headbangc1:/home/cscott/downloads/jperf-1.0# whereis iperf
iperf: /usr/bin/iperf /usr/share/man/man1/iperf.1.gz
It looks like jperf binds to iperf correctly, beacuse if I remove iperf
from the path it gives me an error message telling me to put iperf in
the PATH.