Skip to content

dkubicki/nine-system

Repository files navigation

nine-system

Repository containing the demo JPMS code for JDK9 and JDK10.

Important ⇒ to fully worked services you need open Geonames.org account free WEB API and put your account name in interfaces.

Branches

  1. working-system - the completed application. This version of the code focused on JPMS and new API future

  2. broken-code - not compile under Java 9.

  3. java-10 - shows some Var example in JShell files.

Getting Started with jlink e.g created runtime image only with e.g java.base

$ env | grep JAVA_HOME
JAVA_HOME=/usr/lib/jvm/java-9-oracle
$ javac -version
javac 9-ea
$ java -version
java version "9"

jlink --module-path $JAVA_HOME/jmods --add-modules java.base --output ~/testdir
du -sh
cd ~/testdir/bin
./java --list-modules

#Compare with standard jdk

cd $JAVA_HOME/bin
./java --list-modules

ldd java

Analyze multi-release jar file with jdeps

jdeps -?

jdeps --multi-release 9 /jar-path

jdeps --multi-release 9 -verbose:class multi-release.jar

About

Playing with Java 9 and Java 10

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published