"java.lang.UnsatisfiedLinkError: /tmp/sges-tGArSy/package/libPassword.so: /tmp/sges-tGArSy/package/libPassword.so: wrong ELF class: ELFCLASS32" When Trying To Install Oracle GlassFish Server 2.1.1 (Doc ID 1374072.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version 2.1.1 and later
Linux x86-64

Symptoms

A file based installation of Oracle GlassFish Server 2.1.1 on 64 bit Linux fails with the following error during install:

#./sges-2_1_1-p13-linux-ml.bin
Checking available disk space...
Checking Java(TM) 2 Runtime Environment...
Extracting Java(TM) 2 Runtime Environment files...
Extracting installation files...
Launching Java(TM) 2 Runtime Environment...

.
.
.

The Sun GlassFish Enterprise Server components will be installed in the
following directory, which is referred to as the "Installation Directory".To
use this directory, press only the Enter key. To use a different directory,
type in the full path of the directory to use followed by pressing the Enter
key.

Installation Directory [/xxxxxxx/xxxxxxxx/SUNWappserver] {"<" goes back, "!"
exits}:
The Sun GlassFish Enterprise Server requires a Java 2 SDK.
Please provide the path to a Java 2 SDK 5.0 or greater. [/usr/java/jdk1.6.0
_24] {"<" goes back, "!" exits}
Supply the admin user's password and override any of the other initial
configuration settings as necessary.
Admin User [admin] {"<" goes back, "!" exits}:
Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError: /tmp/sges-tGArSy/package/libPassword.so: /tmp/sges-tGArSy/package/libPassword.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at com.sun.enterprise.installer.utilities.PasswordUtil.<clinit>(PasswordUtil.java:29)
at com.sun.enterprise.installer.dialogs.NewConfigInfoPanel.consoleInteraction(NewConfigInfoPanel.java:1194)
at com.sun.wizards.core.IteratorLayout.cliConsoleInteraction(IteratorLayout.java:786)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms