我试图使用glassfish4文件在Solaris 11.3计算机上安装glassfish-4.0-unix.sh。
在sh ./glassfish-4.0-unix.sh命令之后,图形化安装程序启动。然后在JDK选择页面-没有JDK选项可供选择,它会在终端窗口中打印错误:
// 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这里有什么问题吗?

另外,也不可能手动输入JDK位置。JAVA_HOME设置为:
#echo $JAVA_HOME
/usr/jdk/jdk1.8.0_60Java版本:
#java -version
java version "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/jdk-8@1.8.0.60.27,5.11:20150812T161224Z发布于 2016-03-29 11:54:48
更新:
问题似乎实际上是在用JDK8执行安装程序时。我所做的步骤是:
pkg install jdk-7
export JAVA_HOME=/usr/jdk/instances/jdk1.7.0_
./glassfish-4.0-unix.sh在此之后,我能够选择SDK。注意,在Glassfish 4.0的发布节点中,不支持JDK 8。更多信息这里是认证矩阵
https://unix.stackexchange.com/questions/272833
复制相似问题