jdk.compiler/com.sun.tools.javac.launcher.Main - Java Launcher

Q

How to run "jdk.compiler/com.sun.tools.javac.launcher.Main" tool from JDK lib\modules JImage file?

✍: FYIcenter

A

"jdk.compiler/com.sun.tools.javac.launcher.Main" tool allows you to launch a Java application directly without compilation.

"jdk.compiler/com.sun.tools.javac.launcher.Main" tool is supported by the jmods\jdk.compiler.agent.jmod module file, which is also linked into the lib\modules JImage file.

jdk.compiler/com.sun.tools.javac.launcher.Main" tool using the lib\modules JImage file as described below:

fyicenter> %JDK_HOME%\bin\java --module jdk.compiler/com.sun.tools.javac.launcher.Main Hello.java

Hello world!

 

jdk.compiler/com.sun.tools.javac.Main - "javac" Command

jdk.compiler/com.sun.tools.doclint.DocLint - DocLint Tool

Tools Supported from JDK 9+ lib\modules JImage

⇑⇑ FAQ for JDK (Java Development Kit)

2019-09-27, 1409🔥, 0💬