Yes, this is possible with the --patch-module
option. This option is most often used at runtime, but it also works at compile time:
javac --patch-module <module name>=<path to jar> module-info.java
More Related Contents:
- List the modules resolved during the application startup
- What’s the difference between requires and requires static in module declaration
- Replacements for deprecated JPMS modules with Java EE APIs
- What is an illegal reflective access?
- Unable to derive module descriptor for auto generated module names in Java 9?
- How to solve InaccessibleObjectException (“Unable to make {member} accessible: module {A} does not ‘opens {package}’ to {B}”) on Java 9?
- Package conflicts with automatic modules in Java 9
- JDK9: An illegal reflective access operation has occurred. org.python.core.PySystemState
- What is an automatic module?
- Scanning classpath/modulepath in runtime in Java 9
- How to use 3rd party library in Java9 module?
- Error occurred during initialization of boot layer FindException: Module not found
- Create Java runtime image on one platform for another using Jlink
- Java 9 + maven + junit: does test code need module-info.java of its own and where to put it?
- Java 9: Module java.xml.bind is not accessible in Eclipse
- Classloaders hierarchy in Java 9
- How to extract the file jre-9/lib/modules?
- Self-Contained Applications, built in Java
- Where do resource files go in a Gradle project that builds a Java 9 module?
- What is the point of overloaded Convenience Factory Methods for Collections in Java 9
- Is it possible to mix –class-path and –module-path in javac (JDK 9)?
- Is there a way to add maven dependencies while using the maven-jlink-plugin?
- Tomcat 7.0.73 doesn’t work with java 9
- Why is the finalize() method deprecated in Java 9?
- Error scanning entry “module-info.class” when starting Jetty server
- How to hide warning “Illegal reflective access” in java 9 without JVM argument?
- JDK9 randomization on immutable sets and maps
- Eclipse – module not found when adding module-info.java
- How to properly close MappedByteBuffer?
- Difference between compact strings and compressed strings in Java 9