Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By SurfMan

Thread: JDK installed, but not working on fedora

  1. #1
    esolve is offline Member
    Join Date
    Mar 2015
    Rep Power

    Default JDK installed, but not working on fedora

    I'm using Fedora system.

    JDK installed, but not working on fedora-jdk.jpg

    I searched jdk on yumex and it shows as above
    Previously there is a i686 jdk version, and when I type jave -version, I get

    Java Code:
    $ java -version
    java version "1.7.0_45"
    OpenJDK Runtime Environment (fedora- u45-b15)
    OpenJDK Server VM (build 24.45-b08, mixed mode)
    but my machine is x86_64 , so it is a wrong JDK, and I uninstalled it on yumex.

    but now when I type jave -version, I get

    Java Code:
    $ java -version
    bash: /usr/bin/java: No such file or directory
    what should I do?

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    The Netherlands
    Rep Power

    Default Re: JDK installed, but not working on fedora

    I use Fedora 22 x86_64. I download the x86_64 Java JDK from here: Java SE Development Kit 8 - Downloads, extract it in /usr/local/lib64/jdk8_60 and use alternatives to setup the java/javac/jar etc commands. Also, I set ${JAVA_HOME} in my .bash_profile to make sure that it points to /usr/local/lib64/jdk8_60 so it will be recognised by applications checking for ${JAVA_HOME}. I never bothered with yumex/rpm/yum/dnf. They won't keep up with the latest releases as fast as I like it.
    gimbal2 likes this.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Rep Power

    Default Re: JDK installed, but not working on fedora

    Certainly advice I can stand behind. Package managers are great tools, but when it comes to development tooling that is a vital part of you being able to do your job, better keep it in your own control.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Replies: 26
    Last Post: 12-13-2013, 01:00 PM
  2. Java and Fedora core linux
    By rezasabery in forum New To Java
    Replies: 1
    Last Post: 02-10-2010, 12:51 AM
  3. Fedora Itext Unicode Problem
    By gautamn in forum Java 2D
    Replies: 0
    Last Post: 04-13-2009, 08:12 AM
  4. To run Netbeans on Linux Fedora 8
    By rorootot in forum NetBeans
    Replies: 11
    Last Post: 07-22-2008, 04:23 AM

Posting Permissions

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