Issue on Java software installation.

Asked by Tj Currey

Hello Everyone,

I'm a complete newbie when it comes to Linux so I'll try to give you all the information I can. So, I did a fresh install of Ubuntu 16.04 LTS. I'm basically using it for work to get familiar with Linux. I've gotten through everything I needed except for one thing. I'm trying to install Forescout but I'm running into what I believe is a Java error. I've downloaded the bin file and turned it into an executable. When I try to run it, I receive the following 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...

Launching installer...

Graphical installers are not supported by the VM. The console mode will be used instead...

Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit
 at java.awt.Component.<clinit>(Unknown Source)
 at com.zerog.ia.installer.util.BidiUtilImpl.setDefaultLocale(DashoA10*..)
 at ZeroGbd.a(DashoA10*..)
 at com.zerog.ia.installer.LifeCycleManager.s(DashoA10*..)
 at com.zerog.ia.installer.LifeCycleManager.b(DashoA10*..)
 at com.zerog.ia.installer.LifeCycleManager.a(DashoA10*..)
 at com.zerog.ia.installer.Main.main(DashoA10*..)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.zerog.lax.LAX.launch(DashoA10*..)
 at com.zerog.lax.LAX.main(DashoA10*..)
This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

java -version :

openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)

sudo update-alternatives --config java :

There are 4 choices for the alternative java (providing /usr/bin/java).

  Selection Path Priority Status
------------------------------------------------------------
  0 /usr/lib/jvm/java-7-oracle/jre/bin/java 1083 auto mode
  1 /usr/lib/jvm/java-6-oracle/jre/bin/java 1082 manual mode
  2 /usr/lib/jvm/java-7-oracle/jre/bin/java 1083 manual mode
* 3 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
  4 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode

I'm not sure what to do. I've tried switching versions and then updating my /etc/environment file to use whichever one I was trying atm. In Mint 18 I was able to just download the bin file, run the installer and it worked flawlessly. I don't want to run over to that distro just because of this I would like to find out what the issue is. If you need any other information, let me know. Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Tj Currey
Solved:
Last query:
Last reply:
Revision history for this message
Tj Currey (gonynjago) said :
#1

So, if I opened the .bin file that I'm trying to install, here is what it says:

PATH=$PATH:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
BLOCKSIZE=32768
JRESTART=3
JREREALSIZE=34371409
ARCHSIZE=113
RESSIZE=2231
RESREALSIZE=73087030
ARCHREALSIZE=3679628
LAX_NL_CURRENT_VM=jre/bin/java
LAX_INSTALLER_UNIX_INTERNAL_PROPERTY_0=bin/java
DEFAULTPERMS=002
INSTALLER_OVERRIDE_VMLIST="1.4+"
INSTALLER_STDERR_REDIRECT=""
INSTALLER_STDOUT_REDIRECT=""
INSTALLER_HEAP_SIZE_INITIAL="16777216"
INSTALLER_HEAP_SIZE_MAX="50331648"
INSTALLER_OPTIONAL_ARGS=""
RESOURCE_DIR="Linux"
DEFAULT_UI_MODE="GUI"
#!/bin/sh
#################################################################################################
#
# USE.SH - InstallAnywhere (tm) UNIX Self Extractor Version 10.0
#
# (c) Copyright 1997-2008 Acresso Software Inc. and/or InstallShield Co. Inc., all rights reserved.
#
#################################################################################################

GREP="grep"
# /usr/bin/grep is stripped down on Solaris
[ `uname` = "SunOS" -a -x /usr/xpg4/bin/grep ] && GREP=/usr/xpg4/bin/grep

echo "Preparing to install..."

if [ $JRESTART ]; then
        VM_INCLUDED="true"
else
        VM_INCLUDED="false"
fi

if [ $RESSIZE ]; then
        RESOURCEZIP_INCLUDED="true"
else
        RESOURCEZIP_INCLUDED="false"
fi

# remember what the current locale is
OLD_LANG="$LANG"

# then force it to POSIX for foreign environments where the primary locale
# isn't one we can safely work in; see bug #3411
LANG=C ; export LANG

#################################################################################################

I feel like maybe I'm missing something in the PATH or the LAX_NL_CURRENT_VM but I'm not sure where to go from here.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

If you use the WebUpd8 PPA it will install Java for you and configure the system to use it

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

For diagnostic purposes please provide the output of the commands (to be executed in a terminal):

uname -a
lsb_release -crid
dpkg -l | grep libxtst6

Revision history for this message
Tj Currey (gonynjago) said :
#4

uname -a

Linux PhantekLM 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

lsb_release-crid

Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

dpkg -l | grep libxtst6

ii libxtst6:amd64 2:1.2.2-1 amd64 X11 Testing -- Record extension library
ii libxtst6:i386 2:1.2.2-1 i386 X11 Testing -- Record extension library

I also did use that PPA and downloaded java versions from there and tested but still nothing.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

I assume that you are missing a package that is required by the software that you are trying to install and use.
At least that was the cause in other cases with error messages similar to the one that you see.

Can you re-check that you are meeting all requirements for that software?

Revision history for this message
Tj Currey (gonynjago) said :
#6

So, I was messing around with some things and realized that it might just have something to do with the architecture being 64-bit on my PC. I downloaded the 32-bit java and it worked like a charm. Thanks for the help guys!