aspose file tools*
The moose likes Linux / UNIX and the fly likes Running Eclipse remotely?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Running Eclipse remotely??" Watch "Running Eclipse remotely??" New topic
Author

Running Eclipse remotely??

Himanshu Rawat
Ranch Hand

Joined: Nov 27, 2005
Posts: 141
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


rawat
SCJP 1.4
Ricky Clarkson
Ranch Hand

Joined: Jul 27, 2006
Posts: 131
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

Joined: Jun 25, 2001
Posts: 16250
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Himanshu Rawat
Ranch Hand

Joined: Nov 27, 2005
Posts: 141
Thanks everybody its up and running..cheers
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running Eclipse remotely??