Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Trouble starting Eclipse on Linux
Trouble starting Eclipse on Linux [message #60072] Sat, 30 April 2005 14:03 Go to next message
Eclipse UserFriend
Originally posted by: cknell.onebox.com

I am relatively new to Linux and very new to Eclipse. I have downloaded
3.0.2 and installed it in my home directory (/home/cknell/eclipse). This
is the message I get when I try to start the program by double-clicking
the eclipse file from the file manager:
JVM terminated. Exit code=1
/usr/bin/java
-cp /home/cknell/eclipse/startup.jar org.eclipse.core.launcher.Main
-os linux
-ws gtk
-arch x86
-showsplash /home/cknell/eclipse/eclipse -showsplash 600
-exitdata /home/cknell/eclipse/eclipse -exitdata 158012
-vm /usr/bin/java
-vmargs
-cp /home/cknell/eclipse/startup.jar org.eclipse.core.launcher.Main

When I try to run eclipse from the command line I get this message:
[cknell@sesame eclipse]$ eclipse
libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java
master link required by jpackage.org conventions. libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.

This script was designed to be overridden by the supported RHEL3 JRE
packages, java-1.4.2-bea and java-1.4.2-ibm. It is installed as an
alternative symlink as /usr/bin/java. It will override a third-party
(non-RHEL3) JRE's java command if the JRE's bin directory is listed
after /usr/bin in PATH. In that case, it is recommended that the
third-party JRE's bin directory be listed first in PATH instead.

gij: unrecognized option -- `-cp'
Try `gij --help' for more information.

The second message looks like it has enough information to solve the
problem, but I don't have enough experience to make a useful
interpretation. Can anyone tell me how to solve this? Thanks.

Here are the environment variables that I think are relevant (of course
there may be others, but I'm new to this):
JAVA_HOME=/usr/java/jdk1.5.0_02
CLASSPATH=.:/home/cknell/eclipse/startup.jar
PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:
/usr/X11R6/bin:/usr/java/jdk1.5.0_02/bin:
/home/cknell/apache-ant-1.6.2/bin:/home/cknell/fop-0.20.5:
/usr/local/pgsql/bin:/home/cknell/bin:/usr/java/jdk1.5.0_02/ bin:
/home/cknell/apache-ant-1.6.2/bin:/home/cknell/fop-0.20.5:
/usr/local/pgsql/bin:/home/cknell/eclipse
Re: Trouble starting Eclipse on Linux [message #60194 is a reply to message #60072] Sun, 01 May 2005 13:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cknell.onebox.com

Charles Knell wrote:
> I am relatively new to Linux and very new to Eclipse. I have downloaded
> 3.0.2 and installed it in my home directory (/home/cknell/eclipse). This
> is the message I get when I try to start the program by double-clicking
> the eclipse file from the file manager:
> JVM terminated. Exit code=1
> /usr/bin/java
> -cp /home/cknell/eclipse/startup.jar org.eclipse.core.launcher.Main
> -os linux
> -ws gtk
> -arch x86
> -showsplash /home/cknell/eclipse/eclipse -showsplash 600
> -exitdata /home/cknell/eclipse/eclipse -exitdata 158012
> -vm /usr/bin/java
> -vmargs
> -cp /home/cknell/eclipse/startup.jar org.eclipse.core.launcher.Main
>
> When I try to run eclipse from the command line I get this message:
> [cknell@sesame eclipse]$ eclipse
> libgcj-java-placeholder.sh
>
> This script is a placeholder for the /usr/bin/java
> master link required by jpackage.org conventions. libgcj's
> rmiregistry, rmic and jar tools are now slave symlinks to these
> masters, and are managed by the alternatives(8) system.
>
> This change was necessary because the rmiregistry, rmic and jar tools
> installed by previous versions of libgcj conflicted with symlinks
> installed by jpackage.org JVM packages.
>
> This script was designed to be overridden by the supported RHEL3 JRE
> packages, java-1.4.2-bea and java-1.4.2-ibm. It is installed as an
> alternative symlink as /usr/bin/java. It will override a third-party
> (non-RHEL3) JRE's java command if the JRE's bin directory is listed
> after /usr/bin in PATH. In that case, it is recommended that the
> third-party JRE's bin directory be listed first in PATH instead.
>
> gij: unrecognized option -- `-cp'
> Try `gij --help' for more information.
>
> The second message looks like it has enough information to solve the
> problem, but I don't have enough experience to make a useful
> interpretation. Can anyone tell me how to solve this? Thanks.
>
> Here are the environment variables that I think are relevant (of course
> there may be others, but I'm new to this):
> JAVA_HOME=/usr/java/jdk1.5.0_02
> CLASSPATH=.:/home/cknell/eclipse/startup.jar
> PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:
> /usr/X11R6/bin:/usr/java/jdk1.5.0_02/bin:
> /home/cknell/apache-ant-1.6.2/bin:/home/cknell/fop-0.20.5:
> /usr/local/pgsql/bin:/home/cknell/bin:/usr/java/jdk1.5.0_02/ bin:
> /home/cknell/apache-ant-1.6.2/bin:/home/cknell/fop-0.20.5:
> /usr/local/pgsql/bin:/home/cknell/eclipse

I tried a slightly different approach to Googling for an answer to this
problem and found the expalanation of the above message that I needed at
http://www.linuxquestions.org/questions/history/298885

I changed the path so as to put $JAVA_HOME at the beginning (i.e.,
PATH=$JAVA_HOME:$PATH ... as opposed to the original
PATH=$PATH:$JAVA_HOME ...

After making this change I can start Eclipse from the shell, but I still
can't start it by clicking on the icon I have placed in the panel at the
bottom of the screen.

Does anyone have an idea of how to make that work?

Thanks.
Re: Trouble starting Eclipse on Linux [message #60382 is a reply to message #60194] Mon, 02 May 2005 05:20 Go to previous message
Nicolás Lichtmaier is currently offline Nicolás LichtmaierFriend
Messages: 6
Registered: July 2009
Junior Member
>> [cknell@sesame eclipse]$ eclipse
>> libgcj-java-placeholder.sh
>>
>> This script is a placeholder for the /usr/bin/java
[...]
> Does anyone have an idea of how to make that work?

Go to /etc/alternatives and manually make all those java related
symlinks point to the Sun Java versions.
Previous Topic:Automatically add project to workspace
Next Topic:"Type Safety" Warnings in Problems View
Goto Forum:
  


Current Time: Wed Feb 05 19:01:39 GMT 2025

Powered by FUDForum. Page generated in 0.07237 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top