• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running Eclipse remotely??

 
Himanshu Rawat
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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:


I have logged in as root to the server.

Please tell me wats wrong and how to run it???

Thanks,
Rawat
 
Ricky Clarkson
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Himanshu Rawat
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everybody its up and running..cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic