Estou tentando instalar o glassfish4 na máquina Solaris 11.3 usando o arquivo glassfish-4.0-unix.sh
.
Após o comando sh ./glassfish-4.0-unix.sh
, o instalador gráfico é iniciado. Então, na página de seleção do JDK - não há opções do JDK para selecionar e imprime o erro na janela do terminal:
// Error: Exception in runnable:Method Invocation theJava.getInstalledJDKDetails : at Line: 99 : in file: inline evaluation of: '' import java.io.File; import java.util.List; import java.util.ArrayList; . . . '' : theJava .getInstalledJDKDetails ( )
Called from method: run : at Line: -1 : in file: <Called from Java Code> : <Compiled Java Code>
Target exception: java.lang.NullPointerException
O que poderia ser um problema aqui?
Alémdisso,nãoépossívelinseriralocalizaçãodoJDKmanualmente.JAVA_HOME
estádefinidocomo:
#echo$JAVA_HOME/usr/jdk/jdk1.8.0_60
VersãoJava:
#java-versionjavaversion"1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
#pkg info jdk-8
Name: developer/java/jdk-8
Summary: Java Platform Standard Edition Development Kit (1.8.0_60-b27)
Description: The Java Platform Standard Edition Development Kit (JDK)
includes both the runtime environment (Java virtual machine, the
Java platform classes and supporting files) and development
tools (compilers, debuggers, tool libraries and other tools).
The JDK is a development environment for building applications,
applets and components that can be deployed with the Java
Platform Standard Edition Runtime Environment.
Category: Development/Java
State: Installed
Publisher: solaris
Version: 1.8.0.60.27
Build Release: 5.11
Branch: None
Packaging Date: August 12, 2015 04:12:24 PM
Size: 96.23 MB
FMRI: pkg://solaris/developer/java/[email protected],5.11:20150812T161224Z