Find the answer to your Linux question:
Results 1 to 4 of 4
Good evening I'm quite new to linux. I'm working on a 64 bit linux fedora 6. I've installed Eclipse using a package. I also installed java 1.5 64 bit; it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Posts
    6

    Eclipse and java


    Good evening

    I'm quite new to linux. I'm working on a 64 bit linux fedora 6. I've installed Eclipse using a package. I also installed java 1.5 64 bit; it seems to be installed in /usr/java/jdk1.5.0_13.

    When I type 'eclipse' in a terminal and press enter, there comes a messagebox saying:

    *******************
    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:
    /usr/share/eclipse/jre/bin/java
    'java' in your current PATH
    *******************

    I was wondering how i could tell eclipse where to find java.

    Greets and thanks

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    It would be easier for you to use the pre-packaged Java/Eclipse program. It's a project called Fedora Eclipse and you can install it by running:
    Code:
    yum install eclipse-pde-devel eclipse-jdt
    If you would like the C/C++ development plugin, run:
    Code:
    yum install eclipse-cdt
    Hope that works for you.

  3. #3
    Just Joined!
    Join Date
    Aug 2007
    Posts
    6

    startup problem: exitcode =1

    Hello

    I did what you said. The install process seamed to work fine.
    But when i try to launch eclipse, it now says the message below. I tried to resolve this by: ln -s /usr/bin/eclipse /usr/share/eclipse/eclipse ; but i see no change; it still gives the same error.

    I hope y can help me
    (ps: 64bit os!)



    Failed to load Main-Class manifest attribute from startup.jar

    JVM terminated. Exit code=1
    /usr/bin/java
    -Xms40m
    -Xmx256m
    -Dosgi.sharedConfiguration.area=/usr/lib64/eclipse/configuration
    -jar startup.jar
    -os linux
    -ws gtk
    -arch x86_64
    -launcher /usr/bin/eclipse
    -name Eclipse
    -showsplash 600
    -exitdata 230017
    -vm /usr/bin/java
    -vmargs
    -Xms40m
    -Xmx256m
    -Dosgi.sharedConfiguration.area=/usr/lib64/eclipse/configuration
    -jar startup.jar

  4. #4
    Just Joined!
    Join Date
    Aug 2007
    Posts
    6

    re

    i even doubt if eclipse is really installed, cause
    usr/lib/eclipse does not exist
    usr/lib64/eclipse exists but contains only some files and some jars

Posting Permissions

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