A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nipafx/demo-jpms-hello-world below:

nipafx/demo-jpms-hello-world: Simple Hello-World example for the Java Platform Module System (JPMS)

A simple Hello-World example for the Java module system. Learn more about it in my module system tutorial.

To build and run with Maven execute these commands in the project's root:

mvn verify
java
	--module-path target/hello-modules-1.0-SNAPSHOT.jar
	--module dev.nipafx.demo.hello_modules/dev.nipafx.demo.modules.HelloModularWorld

To compile, package and launch without Maven on Linux:

javac
	-d target/classes
	$(find src -name '*.java')

jar --create
	--file target/hello-modules.jar
	--main-class dev.nipafx.demo.modules.HelloModularWorld
	-C target/classes .
java
	--module-path target/hello-modules.jar
	--module dev.nipafx.demo.hello_modules

On Windows you would have to explicitly enumerate the sources for the javac command, but otherwise it should be the same.

You can use the bach-build-run.jsh JShell script (from Bach) to execute the commands above.

On Linux/Mac:

On Windows, with %JDK%\bin on your PATH (where %JDK is JDK 9 or later):

jshell bach-build-run.jsh

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4