facebook

Installer exception on Red Hat 9 linux

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #202228 Reply

    There is probably a simple solution the problem I’m having but apparently I’m not smart enough to figure it out. I am trying to install EnterpriseWorkbenchInstaller_030700RC2.bin on my RedHat 9.0 box. I have j2sdk1.4.2_02 installed in /usr//java. JAVA_HOME is set to /usr/java/j2sdk1.4.2_02 and the java excutable is in my path. Sooooo..

    When I run the installer I get

    [wroberts@wroberts-desk dl]$ ./EnterpriseWorkbenchInstaller_030700RC2.bin
    Preparing to install…
    Extracting the installation resources from the installer archive…
    Configuring the installer for this system’s environment…

    Launching installer…

    Warning: -Xmx50331648 not understood. Ignoring.
    Warning: -Xms16777216 not understood. Ignoring.
    Exception in thread “main” java.lang.InternalError: Unexpected exception while defining class ZeroGt: java.lang.ClassNotFoundException: javax.swing.JDialog
    at 0x40268e17: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/./libgcj.so.3)

    I’ve modified my classpath to explicitly include all the jar files in lib but I continue to get this exception.

    Any help would be greatly appreciated.

    Warren Roberts

    #202232 Reply

    Riyad Kalla
    Member

    Warren,
    installsheild likes to first find then order all the VMs it finds on your machine, so what is probably happening is that its finding an old VM (or maybe kaffee or alternative VM) and actually trying to run with that instead. You can force it to use a specific VM by useing the following command before execing it:

    
    export LAX_VM=/usr/java/j2sdk1.4.2_02/bin/java
    

    I’m assuming you are using a bash shell. Also if that doesn’t work try different versionso f that path… I don’t exactly know if it needs the absolute path to the bin to run (like I have) or just the path to the bin dir, or just the home path…

    #202243 Reply

    😥

    I tried all different combinations of exporting LAX_VM

    /usr/java/j2sdk1.4.2_02/
    /usr/java/j2sdk1.4.2_02/bin
    /usr/java/j2sdk1.4.2_02/bin/java

    I get the same error

    #202244 Reply

    Riyad Kalla
    Member

    Ok I’m almost positive that this is a problem of the installer not using your JDK installed, if you look back at your original report, you see the line:

    
    Exception in thread "main" java.lang.InternalError: Unexpected exception while defining class ZeroGt: java.lang.ClassNotFoundException: javax.swing.JDialog 
    at 0x40268e17: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/./libgcj.so.3) 
    

    Note that its complaining about a gcj library which if it was using your JDK is definately not somethin it should be trying to use. (gcj == gcc’s Java compiler)

    To give us more info, can you do a

    
    export LAX_DEBUG=1
    

    and then run the installer and put the output in here? I’m sorry LAX_VM didn’t work, maybe I had that wrong. Here is a LAX_VM related thread https://www.genuitec.com/forums/topic/can-t-launch-executable-could-not-load-jvm-dll/&highlight=laxvm and it seems we did everything right…

    #202253 Reply

    Scott Anderson
    Participant

    If I remember correctly, another user worked around this by opening a shell, truncating his path so that it only contained the bin directory of his JDK installation, and then running the installer. Just another avenue in addition to the correct ones that Riyad suggested.

    The ‘path sorting’ problem of InstallAnywhere is a real pain and we’ve been trying to get them to fix it since it was first noticed.

    #202260 Reply

    Riyad Kalla
    Member

    Great suggestion!

    #202307 Reply

    Whahoo….. The LAX_DEBUG gave me the answer. It was using the moldy old /usr/bin/java instead of looking in my classpath.

    I followed ur suggestion that I only have the jdk that I want to use in my path. That still didn’t work but when I set LAX_DEBUG=1 I saw that it was using /usr/bin/java even though it found the other jdk just fine. I deleted /usr/bin/java and it installed ok.

    Thanx for all the help
    Warren

    BTW: I really like the myeclipseide product

    #202308 Reply

    Riyad Kalla
    Member

    Glad its working now!

    #226824 Reply

    sankar
    Member

    actually me too face that pain when i install myeclipseIDe. i follow your steps, but i got hold with the same error after few seconds, Removing tmp install dir: “/tmp/install.dir.5759”. this is the final message, i set LAX_DEBUG =1;.
    i have done everything waht you have said
    but still lot of pain

    please provide me a feasible solution
    regards
    sankar

    #226826 Reply

    sankar
    Member

    i will post u the exact problem with the doc

    #226827 Reply

    sankar
    Member

    When i try to install the myeclipse ide, these are the problems i faced,
    at first i got error at the time when i press the enter key,
    but after your suggestion i changes LAX_DEBUG =1;

    still i got the same error but after few seconds,

    Creating installer data directory: /tmp/install.dir.5474
    Creating installer data directory: /tmp/install.dir.5474/InstallerData
    Gathering free-space information…
    Space needed to complete the self-extraction: 119649 blocks
    Available space: 8508016 blocks
    Available blocks: 8508016 Needed blocks: 119649 (block = 512 bytes)
    This installation does not contain a VM.
    Extracting the installation resources from the installer archive…
    Extracting install.zip from ./EnterpriseWorkbenchInstaller_030804.bin to /tmp/install.dir.5474/InstallerData/installer.zip …
    Extracting done, exit code = 0
    Configuring the installer for this system’s environment…

    ========= Analyzing UNIX Environment =================================
    Setting UNIX (linux) flavor specifics.
    Importing UNIX environment into LAX properties.
    Checking for POSIX awk.

    ========= Analyzing LAX ==============================================
    LAX found………………………. OK.
    LAX properties read……………… OK.

    ========= Finding VM =================================================
    Valid VM types…………………….. J2
    Expanded Valid VM types…………….. JRE_J2 JDK_J2
    WARNING! No valid lax.nl.current.vm available.
    Searching for VMs in PATH:
    Looking in:……………………….. /bin
    Looking in:……………………….. /home/sankaralingam/bin
    Looking in:……………………….. /home/sankaralingam/packages/j2sdk1.4.2_06/bin
    Found VM:……………………….. /home/sankaralingam/packages/j2sdk1.4.2_06/bin/java
    Looking in:……………………….. /sbin
    Looking in:……………………….. /usr/X11R6/bin
    Looking in:……………………….. /usr/bin
    Found VM:……………………….. /usr/bin/java
    Looking in:……………………….. /usr/kerberos/bin
    Looking in:……………………….. /usr/local/bin
    Looking in:……………………….. /usr/sbin
    Looking in:……………………….. /usr/xpg4/bin
    * Using VM:……………………….. /usr/bin/java
    Current VM is NOT a HotSpot VM

    ========= Virtual Machine Options ====================================
    LAX properties incorporated…………. OK.
    classpath…………………………. “/tmp/install.dir.5474/InstallerData:/tmp/install.dir.5474/InstallerData/installer.zip”
    main class………………………… “com.zerog.ia.installer.Main”
    .lax file path…………………….. “/tmp/install.dir.5474/temp.lax”
    user directory…………………….. “/tmp/install.dir.5474”
    stdout to…………………………. “console”
    sterr to………………………….. “console”
    install directory………………….. “”
    JIT………………………………. none
    option (verify)……………………. off
    option (verbosity)…………………. none
    option (garbage collection extent)…… none
    option (garbage collection thread)…… none
    option (native stack max size)………. none
    option (java stack max size)………… none
    option (java heap max size)…………. 50331648
    option (java heap initial size)……… 16777216
    option (lax.nl.java.option.additional).. none

    ========= Display settings ===========================================
    X display…………………………. local
    UI mode…………………………… gui

    Launching installer…

    ========= VM Command Line ============================================
    CLASSPATH=/tmp/install.dir.5474/InstallerData:/tmp/install.dir.5474/InstallerData/installer.zip
    “/usr/bin/java” -Djava.compiler=NONE -Xmx50331648 -Xms16777216 com.zerog.lax.LAX “/tmp/install.dir.5474/temp.lax” “/tmp/env.properties.5474”

    ========= Executing JAVA =============================================
    Warning: -Xmx50331648 not understood. Ignoring.
    Warning: -Xms16777216 not understood. Ignoring.
    Exception in thread “main” java.lang.InternalError: Unexpected exception while defining class ZeroGt: java.lang.ClassNotFoundException: javax.swing.JDialog
    at 0x4028115f: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x4027408e: java.lang.Error.Error(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x40281542: java.lang.VirtualMachineError.VirtualMachineError(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x40275a92: java.lang.InternalError.InternalError(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x40272ff2: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.3)
    at 0x40272dbb: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int) (/usr/lib/libgcj.so.3)
    at 0x4030b29b: java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x402606d7: gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x40272cac: java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.3)
    at 0x40260dcc: _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.3)
    at 0x4025d1fd: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.3)
    at 0x40253809: _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.3)
    at 0x40249697: _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.3)
    at 0x40241a24: _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.3)
    at 0x40260568: java.lang.ClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.3)
    at 0x40273073: java.lang.ClassLoader.resolveClass0(java.lang.Class) (/usr/lib/libgcj.so.3)
    at 0x4025e99c: java.lang.Class.initializeClass() (/usr/lib/libgcj.so.3)
    at 0x4025d224: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.3)
    at 0x4025d2bf: java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x402c60a0: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)
    at 0x40267fdc: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
    at 0x4023478c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.3)
    at 0x08048900: __gcj_personality_v0 (java.compiler=NONE)
    at 0x420158d4: __libc_start_main (java.compiler=NONE)
    at 0x080486c1: _Jv_RegisterClasses (java.compiler=NONE)
    ========= JAVA Finished ==============================================

    Removing tmp install dir: “/tmp/install.dir.5474”

    regards

    sankar

    #226830 Reply

    Riyad Kalla
    Member

    Sankar,
    This is a damn annoying problem with the installer, it is trying to use GCJ to run itself instead of the Sun JRE you have installed. You can override this by setting the LAX_VM environment variable:

    
    LAX_VM=/home/sankaralingam/packages/j2sdk1.4.2_06/bin/java
    

    then running it, and if that doesn’t work, just download and use the Manual Install, it’s a 2-step process and included in the ZIP file is a step-by-step detailed install document.

    #226873 Reply

    sankar
    Member

    Thanks for the help, timely help, finally i got escaped from the problem.

    nice work riyad, thanks alot

    regards

    sankar

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: Installer exception on Red Hat 9 linux

You must be logged in to post in the forum log in