• 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

Running Eclipse remotely??

 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks everybody its up and running..cheers
 
reply
    Bookmark Topic Watch Topic
  • New Topic