LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem running Eclipse 3.0 on RedHat Linux 9.0 (https://www.linuxquestions.org/questions/linux-software-2/problem-running-eclipse-3-0-on-redhat-linux-9-0-a-225799/)

kasturiranganr 09-02-2004 01:52 PM

Problem running Eclipse 3.0 on RedHat Linux 9.0
 
Hi,

I recently installed RedHat Linux 9 on my PC. I have installed it as a server. I have a problem running Eclipse 3.0 on it. I am outlining below the steps I used to install Eclipse and have also pasted the error messages at the end.

1. Downloaded Eclipse 3.0 (eclipse-SDK-3.0M5-linux-gtk.zip)
2. Unzipped it using "unzip eclipse-SDK-3.0M5-linux-gtk.zip"
3. Changed to the /eclipse directory
4. Ran eclipse using ./eclipse

I get two error messages. One appears in a dialog box and the other on the command screen.

Dialog box error message
----------------------------------

JVM terminated. Exit code=1
/usr/bin/java
-cp /usr/local/eclipse/./startup.jar org.eclipse.core.launcher.Main
-os linux
-ws gtk
-arch x86
-showsplash /usr/local/eclipse/./eclipse -showsplash 600

Command Screen error message
---------------------------------------------

Warning: -os not understood. Ignoring.
Warning: -ws not understood. Ignoring.
Warning: -arch not understood. Ignoring.
Warning: -showsplash not understood. Ignoring.
Exception in thread "main" java.lang.InternalError: unexpected exception during linking: java.lang.ClassNotFoundException: java.nio.channels.FileChannel
at 0x40268e17: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x4025bc8e: java.lang.Error.Error(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x402691fa: java.lang.VirtualMachineError.VirtualMachineError(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x4025d62e: java.lang.InternalError.InternalError(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x4025ad82: java.lang.ClassLoader.resolveClass0(java.lang.Class) (/usr/lib/./libgcj.so.3)
at 0x4024646c: java.lang.Class.initializeClass() (/usr/lib/./libgcj.so.3)
at 0x40244d04: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/./libgcj.so.3)
at 0x40244d9f: java.lang.Class.forName(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x402ad01d: gnu.gcj.runtime.FirstThread.run() (/usr/lib/./libgcj.so.3)
at 0x4024fc4c: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
at 0x4021c8ac: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/./libgcj.so.3)
at 0x08048910: ?? (??:0)
at 0x42015704: __libc_start_main (/lib/tls/libc.so.6)
at 0x080486c1: ?? (??:0)


Is this a problem of me not having the right libraries. I am a complete novice in Linux. Any help is appreciated

Thanks,
Sharad

bobwall 09-02-2004 02:51 PM

It looks like you're running Eclipse with gcj/gij instead of Sun's java implementation. Eclipse might need a different setup to work with gcj. See http://klomp.org/mark/gij_eclipse/

kasturiranganr 09-02-2004 03:09 PM

Thanks Bob, I will check it out

My previous machine was running Eclipse (successfully) on Mandrake Linux 9.2

Just out of curiosity, do you think whatever you just suggested would have been required on Mandrake too?.

I am new to this project, and dont know how Eclipse was setup on Mandrake. Hence the question.

Thanks,
Sharad

bobwall 09-02-2004 03:14 PM

No, I don't know anything about eclipse other that I'm going be using it this year in my software design class here at UVA. The only thing that caught my attention was gcj in the error messages. I've been trying to purge my computer of all gcj related files ever since I made the mistake of building gcc with all frontends included. I'm using a lot of advanced features of Java for a project (i.e. JNI and native OpenGL calls) and gcj just doesn't cut it.


All times are GMT -5. The time now is 12:09 AM.