• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Installation of Eclipse On Linux

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to install the eclipse on RedHat.. I am not able to launch the ide . the Fired Exception is as follows.
i have set the environment variables ie PATH, JAVA_HOME,CLASSPATH properly in the .bash_profile.

This Exception is fired at the Terminal
[root@localhost eclipse]# ./eclipse
-----------------------------------------------------------------
Warning: -Xms40m not understood. Ignoring.
Warning: -Xmx512m not understood. Ignoring.
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: .root.eclipse...startup.jar
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/root/eclipse/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/root/eclipse/java.version=1.4.2)
------------------------------------------------------------------------

This Exceptions was fired in a alert dialog box..
JVM terminated. Exit code=1
/usr/bin/java
-Xms40m
-Xmx512m
-jar /root/eclipse/./startup.jar
-os linux
-ws gtk
-arch x86
-launcher /root/eclipse/./eclipse
-name Eclipse
-showsplash 600
-exitdata 1f0011
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx512m
-jar /root/eclipse/./startup.jar


-------------------------------------------------------------------

I am sure i would reply at the earliest

Thank you
Regards
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iam also facing the same problem in macintosh but not at the initial stage.Iam working fine with the eclispe.But sudenly.My eclipse is getting crashed.When i again open the eclipse it gives me the message - JVM terminated.. And i cant reopen the eclipse.Can anyone pls help me,
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sriya --

Welcome to JavaRanch!

We have a strict policy on display names, which must be a real first and last name with a space between. Please go here and fix your display name up, pronto. Thanks, pardner!

Note that it's not the same problem at all; it's a totally different problem. Please start a new thread in our MacOS forum to ask about it.
 
Ernest Friedman-Hill
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ranganath --

Your problem can be fixed easily by installing the Sun JDK from java.sun.com . You're using the GNU "gcj" Java stuff which, while being an impressive achievement in its own right, isn't quite up to the task of running a stock Eclipse distribution (or, to be honest, many other things.) It comes with RedHat Linux by default. You would be doing yourself a favor by uninstalling it. But in any case, install the Sun JDK, put its "bin" directory first on your path, and Eclipse should then work fine.
 
Ranganath Junpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have installed the SUN JDK1.5 but when i try to get to know the version it says java 1.4.2 where as i have installed the java 1.5 update 9 and where exactly will be this GCJ so that i can uninstall it.. I am a new bie to linux so please help out.

Thank you
 
Ernest Friedman-Hill
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to our Linux/UNIX forum.
 
Ranganath Junpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi sriya N others,

The problem is solved.. All we need to do to avoid GCJ compiler to keep quiet is just change the path.. as shown below.

#PATH=$PATH:$HOME/bin:/usr/java/jdk1.5.0_09/bin--> wont work
PATH=/usr/java/jdk1.5.0_09/bin:$PATH:$HOME--> change to this.. it works fine

make sure your SUN's JDK's path is given first .... for your note the GCJ is in the Bin so if you give SUN's JDK Bin in your path first , you would be pointing to your Installed Suns sdk instead of default GCJ.
 
Ernest Friedman-Hill
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Indeed, you'll note that I said exactly that in my original reply. Glad you got it working!
reply
    Bookmark Topic Watch Topic
  • New Topic