Results 1 to 5 of 5
  1. #1
    cccccc is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default Setting path under Linux to recognize jre

    Some years ago I installed Java in a computer, recently I had the chance to use this pc again to program, but when I try to run eclipse, it comes with this message:

    "A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:
    /root/eclipse/./jre/bin/java
    'java in your current PATH"

    These are the directorys related to Java:

    /usr/local/jre1.6.0_03/bin/java
    /usr/local/java
    /usr/local/java/jre/bin/java
    /usr/local/java/bin/java
    /usr/share/opera/java
    /opt/jdk1.5.0_04/jre/bin/java
    /opt/jdk1.5.0_04/bin/java

    My doubt is: How can I set the path so that Java is recognized in my computer?
    Thanks for the help

  2. #2
    sari's Avatar
    sari is offline Member
    Join Date
    Jan 2009
    Posts
    32
    Rep Power
    0

    Default

    What distro do you have? If you have ubuntu you can just reinstall with apt.
    Last edited by sari; 03-29-2009 at 05:35 AM.
    If you don't try you can't succeed.

  3. #3
    cccccc is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default

    It is Fedora 2

  4. #4
    sari's Avatar
    sari is offline Member
    Join Date
    Jan 2009
    Posts
    32
    Rep Power
    0

    Default

    What I would do is reinstall Java 6 with yum see if that works if not reply back again and we will keep trying different things
    If you don't try you can't succeed.

  5. #5
    cccccc is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default

    I thought about that too, but when I asked yum to list all the packages available for installation, there wasn't any related do jre.

    I am using the repositories that the latest yum points to by default, according to a post of someone about using yum, when he was commenting on a article about how to install software on fedora2 using the default package manager, the update. I will search for another repositories and how to modify the yum.conf file, so, when I will be able to do that I will tell if it worked.

Similar Threads

  1. Replies: 6
    Last Post: 04-08-2009, 05:05 AM
  2. Using scanner.hasNext() but recognize return
    By ScKaSx in forum New To Java
    Replies: 5
    Last Post: 01-27-2009, 11:11 AM
  3. Replies: 0
    Last Post: 07-30-2008, 12:25 PM
  4. Setting up class path for Eclipse
    By tsantana in forum Eclipse
    Replies: 1
    Last Post: 04-07-2008, 08:05 PM
  5. Setting Java Path
    By bugger in forum New To Java
    Replies: 2
    Last Post: 11-22-2007, 10:48 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
  •