Find the answer to your Linux question:
Results 1 to 8 of 8
i installed debian 5.0 and tried starting eclipse. i generated an error while starting for the for 1st time.done it 5 times and then reinstalled it. the error is ; ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie rituraj.goswami's Avatar
    Join Date
    Aug 2008
    Location
    Guwahati
    Posts
    135

    Question debian eclipse problem


    i installed debian 5.0 and tried starting eclipse. i generated an error while starting for the for 1st time.done it 5 times and then reinstalled it. the error is ;

    jvmterminated exit code 127
    There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.

  2. #2
    Just Joined!
    Join Date
    Jun 2009
    Location
    everywhere, in the net
    Posts
    4
    have you installed sun java sdk???

  3. #3
    Linux Newbie rituraj.goswami's Avatar
    Join Date
    Aug 2008
    Location
    Guwahati
    Posts
    135
    yeah i installed the original sdk from sun webiste
    There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    what is output of these commands?
    Code:
    which java
    echo $JAVA_HOME
    if neither of these points to your jdk installation, it could be your problem

  5. #5
    Just Joined!
    Join Date
    Jun 2009
    Location
    everywhere, in the net
    Posts
    4
    you may have to set the environment variables in your $HOME/.bashrc

    add the path of Java installation.

    try it

    (replace with your sdk installation path)
    export PATH="/opt/SDK/jdk/bin:$PATH"
    export JAVA_HOME="/opt/SDK/jdk"

    then, save changes and close your session, logon and try:

    echo $JAVA_HOME

    the output must be "/opt/SDK/jdk"

  6. #6
    Linux Newbie rituraj.goswami's Avatar
    Join Date
    Aug 2008
    Location
    Guwahati
    Posts
    135
    this is the exact error genereated:

    JVM terminated. Exit code=127
    /usr/lib/jvm/java-6-openjdk/bin/java
    -Djava.library.path=/usr/lib/jni
    -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db
    -Dgnu.gcj.runtime.VMClassLoader.library_control=nev er
    -Dosgi.locking=none
    -jar /usr/lib/eclipse/startup.jar
    -os linux
    -ws gtk
    -arch x86
    -launcher /usr/lib/eclipse/eclipse
    -name Eclipse
    -showsplash 600
    -exitdata 208018
    -install /usr/lib/eclipse
    -vm /usr/lib/jvm/java-6-openjdk/bin/java
    -vmargs
    -Djava.library.path=/usr/lib/jni
    -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db
    -Dgnu.gcj.runtime.VMClassLoader.library_control=nev er
    -Dosgi.locking=none
    -jar /usr/lib/eclipse/startup.jar
    There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.

  7. #7
    Linux Newbie rituraj.goswami's Avatar
    Join Date
    Aug 2008
    Location
    Guwahati
    Posts
    135
    the command
    which java
    results in
    /usr/bin/java

    the commad echo $JAVA_HOME doesn't return anytthing.
    There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.

  8. #8
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    based on your errors, eclipse is trying to start using openjdk and not the sun jdk, you need to put sun jdk on your path before the openjdk, also I recommend setting the JAVA_HOME environment variable to point to sunjdk as well

Posting Permissions

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