| Author |
Installation of Eclipse On Linux
|
Ranganath Junpal
Ranch Hand
Joined: Aug 31, 2006
Posts: 75
|
|
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
|
 |
vineela kom
Greenhorn
Joined: Aug 04, 2006
Posts: 7
|
|
|
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,
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24057
|
|
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.
|
[Jess in Action][AskingGoodQuestions]
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24057
|
|
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
Joined: Aug 31, 2006
Posts: 75
|
|
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
Marshal
Joined: Jul 08, 2003
Posts: 24057
|
|
|
Moving to our Linux/UNIX forum.
|
 |
Ranganath Junpal
Ranch Hand
Joined: Aug 31, 2006
Posts: 75
|
|
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
Marshal
Joined: Jul 08, 2003
Posts: 24057
|
|
|
Indeed, you'll note that I said exactly that in my original reply. Glad you got it working!
|
 |
 |
|
|
subject: Installation of Eclipse On Linux
|
|
|