Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I've been trying for three days now to install java on a machine that supposedly didn't have any version. What I'm doing is to install jdk-7u55 via shell and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2014
    Posts
    2

    Question Problems Installing Java


    Hello, I've been trying for three days now to install java on a machine that supposedly didn't have any version. What I'm doing is to install jdk-7u55 via shell and displays the following error:

    Preparing... ################################# [100%]
    package jdk-2000:1.8.0_05-fcs.i586 (which is newer than jdk-2000:1.7.0_55-fcs.i586) is already installed

    when i try to install jdk-8u5 the error now is
    Preparing... ################################# [100%]
    package jdk-2000:1.8.0_05-fcs.i586 is already installed

    and "which java" returns
    /usr/bin/which: no java in (/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/user20/.local/bin:/home/user20/bin)

    and locate java returns a lot of info not any related to a java installation per se.

    The thing is that jdk-7u55 must be installed because some development apps don't yet support the java update. I've tryd different versions of Oracle java with no success and cannot use openjdk(actually i haven't try this since is not an option)

    Any pointers on what the cause could be?
    The installation is on a Fedora 19 with latest updates
    and the installation is with an rpm distribution

  2. #2
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,278
    It may be install in something like /opt/java and not in your path. You could run:
    Code:
    find / -name java 2>/dev/null

  3. #3
    Just Joined!
    Join Date
    May 2014
    Posts
    2

    Thumbs up

    Quote Originally Posted by gregm View Post
    It may be install in something like /opt/java and not in your path. You could run:
    Code:
    find / -name java 2>/dev/null
    RESOLVED
    It was installed somewhere all right, you pointed me in the right direction. Though I used

    rpm -qa

    and there it was.

    So i just

    rpm -e jdk-version.fcs

    and install it with

    rpm -Uvh jdk-version.fcs

    Burned out I'll say

    Thx
    Last edited by lumee; 05-07-2014 at 03:29 PM.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,556
    Assuming you are using yum for this, try using the "reinstall" command.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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