facebook

HOW TO: Force usage of specific Java VM for install on Linux

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

    Hi,

    I encountered a problem running the Linux installer using Ubuntu Linux. Searching around for Hints, Tips and Tricks I found a solution for this.

    The ZeroG Installer doesn’t work using the gcj Java VM, but it always try to do so. You can check this calling the installer with this command:

    LAX_DEBUG=1 sh EnterpriseWorkbenchInstaller_030804_3.1M7Beta.bin

    You’ll will find a line like this…

    * Using VM:............................. /usr/lib/jvm/java-gcj/bin/java

    You can force the usage of another VM using two additional params while calling the installer:

    sh EnterpriseWorkbenchInstaller_030804_3.1M7Beta.bin LAX_VM /path/to/your/jdk/bin/java

    Pingus

    #229850 Reply

    Scott Anderson
    Participant

    Pingus,

    Thanks for the contribution to the knowledge base! I’ve marked this sticky so others can find it more easily.

    #231915 Reply

    beconnected
    Member

    This doesn’t work for me

    
    sh EnterpriseWorkbenchInstaller_4.0M2_E3.1.bin LAX_VM /opt/jdk1.5.0_04/bin/java
    Preparing to install...
    tail: `-1' option is obsolete; use `-n 1'
    Try `tail --help' for more information.
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    
    Launching installer...
    
    Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX
    

    I’am using Fedora Core 3

    #231935 Reply

    Greg
    Member

    Try putting the LAX_VM before the shell command.

    LAX_VM=/opt/jdk1.5.0_04/bin/java sh EnterpriseWorkbenchInstaller_4.0M2_E3.1.bin
    #235811 Reply

    srau
    Member

    I ran the command but the installer never comes up.

    $ ./EnterpriseWorkbenchInstaller_4.0M3_E3.1.bin LAX_VM /home/xxxx/devel/javaLinux1.4.2_04
    Preparing to install…
    Extracting the installation resources from the installer archive…
    Configuring the installer for this system’s environment…

    Launching installer…

    $.

    #235819 Reply

    Greg
    Member

    You have to set the environmental variable before you execute the shell. Also the LAX_VM needs to point to the actual java binary not just the java home directory.

    If you are running bash…

    $ export LAX_VM=/home/xxxx/devel/javaLinux1.4.2_04/bin/java
    $ sh EnterpriseWorkbenchInstaller_4.0M3_E3.1.bin
    #252631 Reply

    rgunn
    Member

    I cant get it to work either…

    rgunn@rgunn-laptop:~$ export LAX_VM=/home/rgunn/jdk1.5.0_07/bin/java
    rgunn@rgunn-laptop:~$ sh EnterpriseWorkbenchInstaller_4.1.1GA_E3.1.bin
    Preparing to install…
    Extracting the installation resources from the installer archive…
    Configuring the installer for this system’s environment…

    Launching installer…

    Unable to locate the application’s ‘main’ class. The class ‘com.zerog.ia.installer.Main’ must be public and have a ‘public static void main(String[])’ method. (LAX)
    GUI-
    rgunn@rgunn-laptop:~$

    #254340 Reply

    If the installer complains

    awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory

    then see my post here: https://www.genuitec.com/forums/topic/linux-installer-will-not-work-on-all-distributions/#post-254339

    #258266 Reply

    Andy Bentley
    Member

    Running FC6 test 2 x86_64 eclipse 3.2 w/Sun JDK 1.5.0_08 installed
    had to extract install thus : cat MyEclipseEnterpriseWorkbenchInstaller_5_0_1GA_E3_2.bin | sed ‘s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/g’ > install.bin
    then run install thus : sh ./install.bin LAX_VM /opt/dev_tools/jdk1.5.0_08

    #261292 Reply

    fastzch
    Member

    to albill:
    I run following command:
    cat MyEclipseEnterpriseWorkbenchInstaller_5_0_1GA_E3_2.bin | sed ‘s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/g’ > install.bin
    chmod +x install.bin
    sh ./install.bin LAX_VM /usr/java/jdk1.5.0_09

    error:
    Preparing to install…
    Extracting the JRE from the installer archive…
    Unpacking the JRE…
    Extracting the installation resources from the installer archive…
    Configuring the installer for this system’s environment…
    awk: cmd. line:6: warning: escape sequence `\.’ treated as plain `.’

    Launching installer…

    ./install.bin: line 2469: /usr/java/jdk1.5.0_09/jre: is a directory
    ./install.bin: line 2469: exec: /usr/java/jdk1.5.0_09/jre: cannot execute: 成功

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: HOW TO: Force usage of specific Java VM for install on Linux

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