Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Install problem for RedHat 8.0 / j2sdk1.4.1_02
Install problem for RedHat 8.0 / j2sdk1.4.1_02 [message #27429] Fri, 02 May 2003 17:53 Go to next message
Eclipse UserFriend
Originally posted by: zl2k.earthlink.net

!! Thanks for any suggestions !!

I am new to linux and now using redhat8.0 with j2sdk1.4.1_02 installed.
I followed the instructions of eclipse and when I type the command
../eclipse
it gives the following warning

Warning: -os not understood. Ignoring.
Warning: -ws not understood. Ignoring.
Warning: -arch not understood. Ignoring.
Warning: -showsplash not understood. Ignoring.

here is the log file

!SESSION
------------------------------------------------------------ ----------
!ENTRY org.eclipse.core.launcher 4 0 May 02, 2003 15:29:28.862
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
at 0x4028212c: java.lang.Throwable.Throwable() (/usr/lib/libgcj.so.3)
at 0x402750af: java.lang.Exception.Exception() (/usr/lib/libgcj.so.3)
at 0x402789b3: java.lang.RuntimeException.RuntimeException()
(/usr/lib/libgcj.so.3)
at 0x402780a7: java.lang.NullPointerException.NullPointerException()
(/usr/lib/libgcj.so.3)
at 0x402495cd:
_Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
(/usr/lib/libgcj.so.3)
at 0x40249e34: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw,
_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3)
at 0x40247424: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw,
void) (/usr/lib/libgcj.so.3)
at 0x4039e1bc: ?? (??:0)
at 0x4039e347: ffi_call_SYSV (/usr/lib/libgcj.so.3)
at 0x4039e307: ffi_raw_call (/usr/lib/libgcj.so.3)
at 0x40249528:
_Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
(/usr/lib/libgcj.so.3)
at 0x40249e34: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw,
_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3)
at 0x40247424: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw,
void) (/usr/lib/libgcj.so.3)
at 0x4039e1bc: ?? (??:0)
at 0x4039e347: ffi_call_SYSV (/usr/lib/libgcj.so.3)
at 0x4039e307: ffi_raw_call (/usr/lib/libgcj.so.3)
at 0x40249528:
_Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
(/usr/lib/libgcj.so.3)
at 0x40249e34: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw,
_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3)
at 0x40247424: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw,
void) (/usr/lib/libgcj.so.3)
at 0x4039e1bc: ?? (??:0)
at 0x4039e347: ffi_call_SYSV (/usr/lib/libgcj.so.3)
at 0x4039e307: ffi_raw_call (/usr/lib/libgcj.so.3)
at 0x40249528:
_Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
(/usr/lib/libgcj.so.3)
at 0x40249e34: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw,
_Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3)
at 0x40247424: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw,
void) (/usr/lib/libgcj.so.3)
at 0x4039e1bc: ?? (??:0)
at 0x4025c308: gnu.gcj.runtime.FirstThread.call_main()
(/usr/lib/libgcj.so.3)
at 0x402c70b1: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)
at 0x40268fdc: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
at 0x4023578c: _Jv_RunMain(java.lang.Class, byte const, int, byte
const, boolean) (/usr/lib/libgcj.so.3)
at 0x08048900: ?? (??:0)
at 0x420158f7: __libc_start_main (/lib/i686/libc.so.6)
at 0x080486c1: ?? (??:0)

I am not sure if the sun jdk is intalled right since the redhat8.0
itself has gci (http://www.arklinux.org/projects/jdkgcj) installed, it's
something like jre. "java -version" shows as

java version "1.3.1"
jdkgcj 0.2.3 (http://www.arklinux.org/projects/jdkgcj)
gcj (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

which is not j2sdk1.4.1_02 as expected. But,
"/usr/java/j2sdk1.4.1_02/bin/java -version" shows right version.
I tried HolloWorld and works ok.

/usr/java/j2sdk1.4.1_02/bin is in my PATH.

Your suggestions are highly appreciated.

zhong
Re: Install problem for RedHat 8.0 / j2sdk1.4.1_02 [message #27434 is a reply to message #27429] Fri, 02 May 2003 18:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: muelleimer.usenet.katzien.de

* zl2k <zl2k@earthlink.net> wrote:
> something like jre. "java -version" shows as
> gcj (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

This one probably will not work (as the exeptions shows...)

> "/usr/java/j2sdk1.4.1_02/bin/java -version" shows right version.

eclipse -vm /usr/java/j2sdk1.4.1_02/bin/java

Jan
Great! one more question... [message #27436 is a reply to message #27434] Fri, 02 May 2003 20:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zl2k.earthlink.net

Thanks so much! yes, it works now.
One more question, is there any way to make some correction somewhere so
that I can just type ./eclipse and let it run? Basically, how can I let
the redhat know that the java virtual machine is right there? (not it's
default gcj stuff.)
Thank you again.

zhong


Jan Schulz wrote:
> * zl2k <zl2k@earthlink.net> wrote:
>
>>something like jre. "java -version" shows as
>>gcj (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
>
>
> This one probably will not work (as the exeptions shows...)
>
>
>>"/usr/java/j2sdk1.4.1_02/bin/java -version" shows right version.
>
>
> eclipse -vm /usr/java/j2sdk1.4.1_02/bin/java
>
> Jan
Re: Great! one more question... [message #27438 is a reply to message #27436] Fri, 02 May 2003 20:18 Go to previous message
Eclipse UserFriend
Originally posted by: muelleimer.usenet.katzien.de

* zl2k <zl2k@earthlink.net> wrote:
> One more question, is there any way to make some correction somewhere so
> that I can just type ./eclipse and let it run? Basically, how can I let
> the redhat know that the java virtual machine is right there? (not it's
> default gcj stuff.)

The debian packages uses a skript, which will read
$HOME/.eclipse/eclipserc, where you can set JAVA_HOME and where the
script will get the 'java to use' from. I can put this files online
if you want...

If you only want to do it the easy way: vi $HOME/bin/eclipse
-- $HOME/bin/eclipse --
#!/bin/bash
eclipse -vm ... <more options> -vmargs <VM options>
-- end --
chmod 755 $HOME/bin/eclipse

For this, $HOME/bin must be first in the PATH (check $HOME/.bash_profile
or .bashrc, usually there is a commented out line for this).

Another thing is looking at the /bin/java symlink (which will most
likely point to gcj) and changing this thing (and javac and so on,
too). This way the eclipse starter will 'see' that VM first.

Jan
Previous Topic:GUI editors
Next Topic:Eclipse.exe command line args + Max Memory Option for JVM
Goto Forum:
  


Current Time: Sat Aug 02 09:54:25 EDT 2025

Powered by FUDForum. Page generated in 0.04351 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top