java.xml/ - Regular Expression Tool


How to run "java.xml/" tool from JDK lib\modules JImage file?

✍: FYIcenter


"java.xml/" tool allows you to perform a regular expression match on a given string.

"java.xml/" tool is supported by the jmods\jdk.xml.jmod module file, which is also linked into the lib\modules JImage file in JDK 9, 10, and 11.

java.xml/" tool using the lib\modules JImage file as described below using JDK 11 as an example:

C:\fyicenter>set JDK_HOME=\fyicenter\jdk-11.0.1

C:\fyicenter>%JDK_HOME%\bin\java --module java.xml/

Error:Usage: java REUtil -i|-m|-s|-u|-w|-X regularExpression String

C:\fyicenter>%JDK_HOME%\bin\java --module java.xml/ o "Hello world!"

RegularExpression: o
Matched range for the whole pattern: 4, 5, "o"


⇒ jdk.compiler/ - DocLint Tool

⇐ java.scripting/ - JavaScript Shell

⇑ Tools Supported from JDK 9+ lib\modules JImage

⇑⇑ FAQ for JDK (Java Development Kit)

2019-10-18, 1008👍, 0💬