Mudando para o Oracle JDK 8:
thufir@dur:~$
thufir@dur:~$ sdk ls java
================================================================================
Available Java Versions
================================================================================
9.0.1-oracle
> * 9.0.0-zulu
8u151-oracle
8u144-zulu
8u131-zulu
7u141-zulu
6u93-zulu
================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
thufir@dur:~$ sdk install java 8u151-oracle
Oracle requires that you agree with the Oracle Binary Code License Agreement
prior to installation. The license agreement can be found at:
http://www.oracle.com/technetwork/java/javase/terms/license/index.html
Do you agree to the terms of this agreement? (Y/n): Y
Downloading: java 8u151-oracle
In progress...
######################################################################## 100.0%
Repackaging Java 8u151-oracle...
Done repackaging...
Installing: java 8u151-oracle
Done installing!
Do you want java 8u151-oracle to be set as default? (Y/n): Y
Setting java 8u151-oracle as default.
thufir@dur:~$
thufir@dur:~$
thufir@dur:~$ javac -version
javac 1.8.0_151
thufir@dur:~$
thufir@dur:~$ java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
thufir@dur:~$
thufir@dur:~$
thufir@dur:~$ sudo update-alternatives --config java
[sudo] password for thufir:
There are 3 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-9-oracle/bin/java 1091 auto mode
1 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
* 2 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode
3 /usr/lib/jvm/java-9-oracle/bin/java 1091 manual mode
Press <enter> to keep the current choice[*], or type selection number:
thufir@dur:~$
thufir@dur:~$
thufir@dur:~$ GlassFish_Server/
bin/ javadb/ .org.opensolaris,pkg/
glassfish/ mq/ pkg/
thufir@dur:~$ GlassFish_Server/bin/
asadmin pkg updatetool
thufir@dur:~$ GlassFish_Server/bin/asadmin list-domains
domain1 not running
dur2 not running
dur not running
Command list-domains executed successfully.
thufir@dur:~$
funciona bem.