Find the answer to your Linux question:
Results 1 to 5 of 5
I'm running the version that comes with RHEL 5.1 - IBM Apache won't install so I need to know what version comes with 5.1 so I can compare to what ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Location
    NJ
    Posts
    3

    [SOLVED] How to check java version?


    I'm running the version that comes with RHEL 5.1 - IBM Apache won't install so I need to know what version comes with 5.1 so I can compare to what IBM Apache needs. Thanks for any help.

    -Josh - linux newb

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Run "java -version". The java shipped in RHEL 5.x should be some version of gcj.

  3. #3
    Just Joined!
    Join Date
    Mar 2008
    Location
    NJ
    Posts
    3
    I get:

    [root@h1vm /]# java -version
    -bash: java: command not found

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Quote Originally Posted by banging View Post
    I get:

    [root@h1vm /]# java -version
    -bash: java: command not found
    That means either you do not have Java installed, or the java executable is not in your path. Since you were logged in as root when you issued this, I assume you do not have Java installed.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  6. #5
    Just Joined!
    Join Date
    Mar 2008
    Location
    NJ
    Posts
    3
    That makes sense, and why I couldn't find it anywhere. Thanks very much.

Posting Permissions

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