I have installed eclipse on redhat linux server and also set my display to my PC ip address "export DISPLAY=10.1.14.41:0.0
but when i m trying to run eclipse (./eclipse) its givin me below error :
Warning: -Xms40m not understood. Ignoring. Warning: -Xmx256m not understood. Ignoring. Warning: -jar not understood. Ignoring. Exception in thread "main" java.lang.NoClassDefFoundError: tmp.eclipse.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 (/tmp/eclipse/eclipse/java.version=1.4.2) at __libc_start_main (/lib/tls/libc-2.3.4.so) at _Jv_RegisterClasses (/tmp/eclipse/eclipse/java.version=1.4.2) (eclipse:20969): Gtk-WARNING **: cannot open display:
The machine doesn't have Java installed (or configured correctly), but gcj.
GCJ is not Java, but is similar to Java. It provides an executable called 'java', which is misleading. I would recommend avoiding any distribution of Linux that distributes it with the 'java' executable without making it clear that 'java' is not Java.
Originally posted by Ricky Clarkson: I would recommend avoiding any distribution of Linux that distributes it with the 'java' executable without making it clear that 'java' is not Java.
Unfortunately, that's just about all of them thse days.
The easiest way to fix this problem is to download the Sun JDK. I recommend placing it under /usr/java, which is where the RPM install does it. By putting my JDK's in /usr/java/ it's easy to pick whichever Java release you want for a given application instead of forcing all apps to run the same version.
So let's say you did that for one of the recent releases. Set JAVA_HOME for Eclipse's benefit, then set the PATH so that the two agree:
ECLIPSE_HOME isn't a required definition, but it makes things a little more abstract.
BTW DON'T run eclipse as root!!!
I think you can run a shared eclipse by placing it in /usr/local/eclipse, though I always just put eclipse in my home directory. The non-sharable stuff I think is all in your workspace directory, but I could be wrong.
An IDE is no substitute for an Intelligent Developer.