Zend Studio and Zend Guard Installation Problems on GNU/Linux Systems

Follow

Applies To:

[ Zend Studio for Eclipse 6.x, Zend Studio 5.x, Zend Guard 5.x ]
[ Linux ]

Symptom

Two types of problems have been reported:

  1. Installation is successful with normal user account but fails when run as superuser (root).
  2. Installation fails resulting an a JRE error.

Error messages

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...
Launching installer...
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.

 

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...
Launching installer...
exec: 2481: /tmp/install.dir.5489/Linux/resource/jre/bin/java: not found

 

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...
Launching installer...
No protocol specified
'SWING' UI not supported by VM. Reverting to AWT.
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.lang.NoClassDefFoundError

Technical Details

 

  1. The Macrovision InstallAnywhere installer can't find the display to run on, due to current environment not being transferred into the superuser session. Basically, same commands should produce the same effect on any system. In reality, this is not the case -- many nuances vary from distribution to distribution.
  2. The Macrovision InstallAnywhere installer has compatibility issues, resulting in its inability to find/access the packaged JRE, or to run it properly.

Resolution / Workaround

Fortunately, the problems are quite easy to workaround:

  1. Just set the DISPLAY environment variable for the installer using one of these commands:
    • # DISPLAY=:0 ./ZendStudio5_5_1.bin
    • $ sudo export DISPLAY=:0; ./ZendStudio5_5_1.bin
  2. Instruct the installer to run in GUI-less (console) mode:
    • # ./ZendStudio5_5_1.bin -i console
  3. Instruct the installer to use system's JRE. It is definitely accessible and is compatible with the distribution:
    • # ./ZendStudio5_5_1.bin LAX_VM /usr/bin/java
Note:
/usr/bin/java is the correct path in most distributions, however, your mileage may vary. To find the path on your system:
# which java

Original Post Date: 2009-04-13 19:18:04

External Links:

Zend Studio Installation Issues

Alternative Description:

The article provides ways to workaround some problems that may occur during the installation of Zend Studio or Zend Guard.

_____
Tags: Debian / Ubuntu,DISPLAY,Install Anywhere,installation,Java,RedHat Enterprise Linux / CentOS,SUSE Linux Enterprise Server / OpenSUSE,X11,ZDE 5.x and older,Zend Guard,Zend Guard,Zend Studio,Zend Studio 7.x,Zend Studio for Eclipse 6.x,oldKB

Have more questions? Submit a request

Comments

Powered by Zendesk