Results 1 to 8 of 8
  1. #1
    timmy2 is offline Member
    Join Date
    Sep 2013
    Posts
    4
    Rep Power
    0

    Question When a program like JPERF requires "JRE 1.5+" to run...

    I want to use JPERF and its docs say "Java JRE 1.5+" is required. I've got "jre-7u40-windows-i586" installed on my Windows 7 (64b) PC but when I run the jperf.bat file it bails out with the error message, "Cannot find 'javaw'". What's needed and if the answer is "an old version" will this compromise my PC's security? Thank you!

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,926
    Rep Power
    8

    Default Re: When a program like JPERF requires "JRE 1.5+" to run...

    Sounds like you need to set your path correctly.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    timmy2 is offline Member
    Join Date
    Sep 2013
    Posts
    4
    Rep Power
    0

    Question Re: When a program like JPERF requires "JRE 1.5+" to run...

    Quote Originally Posted by KevinWorkman View Post
    Sounds like you need to set your path correctly.
    Thank you for replying.

    JPERF is a graphical frontend for IPERF, a network performance tool written in Java and available on Sourceforge. I remember a while back wanting to use it, finding and installing JRE 1.5, and it worked. Now, on a newer PC I hesitate to install any old Java.

    Perhaps the following batch file that comes in the package contains the erroneous path to which you refer. Since it worked with 1.5 previously I assume some part of the batch file refers to a parameter or location not applicable when running "jre-7u40-windows-i586". Can you tell me where the following simple batch file goes afoul of the latest jre?


    Java Code:
    start javaw -classpath jperf.jar;lib\forms-1.1.0.jar;lib\jcommon-1.0.10.jar;lib\jfreechart-1.0.6.jar;lib\swingx-0.9.6.jar net.nlanr.jperf.JPerf
    exit

  4. #4
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    758
    Rep Power
    8

    Default Re: When a program like JPERF requires "JRE 1.5+" to run...

    As Kevin said before, the path to javaw command might not set correctly. If you tried to run "javaw" command on the command prompt what do you get?

  5. #5
    timmy2 is offline Member
    Join Date
    Sep 2013
    Posts
    4
    Rep Power
    0

    Red face Re: When a program like JPERF requires "JRE 1.5+" to run...

    Quote Originally Posted by wsaryada View Post
    As Kevin said before, the path to javaw command might not set correctly. If you tried to run "javaw" command on the command prompt what do you get?
    Thank you for replying.

    When I open a DOS box in Windows 7 (64b) and type "javaw" I get:

    "'javaw' is not recognized as an internal or external command, operable program or batch file."

    Could it be that while "jre-7u40-windows-i586" includes "JRE" in the name it's not the same thing as "JRE 1.5+"? (I know nothing about Java.) Or, could it be that because I'm running 64 bit Windows 7 that I need to install the 64b version (jre-7u40-windows-x64? I recall back when I was a moron I would dutifully install the 64b version and then wonder why my browser would say I didn't have Java installed. Only after the fog cleared did it dawn on me that the default browser is 32b and therefore needs the 32b version of Java. Maybe in this case, because I'm trying to run a Java program, it's looking for the 64b version? Does something need to be registered in the system to run Java programs as opposed to merely serving as an add-on to browsers?

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,931
    Rep Power
    19

    Default Re: When a program like JPERF requires "JRE 1.5+" to run...

    No, it means the program is not in the PATH environment variable.
    For whatever reason.
    More accurately the bin directory under that JRE is not in the PATH environment variable.

    It's soething that should have happened when it was installed, but I have heard it fail to do that before now.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,926
    Rep Power
    8

    Default Re: When a program like JPERF requires "JRE 1.5+" to run...

    This isn't really a Java problem. It's a common computing issue. Recommended reading: JDK Installation for Microsoft Windows
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  8. #8
    timmy2 is offline Member
    Join Date
    Sep 2013
    Posts
    4
    Rep Power
    0

    Default Re: When a program like JPERF requires "JRE 1.5+" to run...

    Quote Originally Posted by Tolls View Post
    No, it means the program is not in the PATH environment variable.
    For whatever reason.
    More accurately the bin directory under that JRE is not in the PATH environment variable.

    It's soething that should have happened when it was installed, but I have heard it fail to do that before now.
    Thank you, Tolls, this was the solution! I added the path to the jre bin folder to the PATH system environment variable and now jperf runs.

Similar Threads

  1. Replies: 0
    Last Post: 12-07-2012, 08:29 AM
  2. Replies: 3
    Last Post: 10-30-2012, 03:06 PM
  3. Program skips "If" code and goes straight to "Else"
    By Logik22 in forum New To Java
    Replies: 12
    Last Post: 01-21-2012, 05:40 PM
  4. Replies: 8
    Last Post: 12-30-2009, 11:40 AM
  5. Replies: 1
    Last Post: 10-20-2008, 07:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •