Starting from Java 9 module path is used by JVM to look up modules during different phases (compile-time, runtime, etc.) by specifying `--module-path` or `-p` options. Its value is a semicolon-separated (;) list of directories each of which is a directory of modules.
Questions tagged [module-path]
66 questions
0
votes
1 answer
In python, Is it possible to get the path of the invoked from the invoked file?
I want to invoke config.py from ./, but I want config.py to recognize the path where it is located ("./second/config.py")
I want to invoke config.py from "./" and I want config.py to recognize and read file.json, but I dont want to send any paths as…

Cristiam MJ
- 17
- 3
0
votes
1 answer
How to build with module path in Netbeans
Currently when I build my Java programs in Netbeans it asks for a classpath and wants to build with a classpath. However, keeping with the growing modular focus of Java 9+ I would rather compile with a module path.
I would run the command javac ...…

FatFrank
- 73
- 1
- 10
0
votes
2 answers
Migrating to Java 11: I need help resolving Classpath & Module Path Conflicts In Eclipse
I'm helping to migrate a large project ( Eclispe SWT, many plugins bundled together as one project ) from Java 8 to Java 11.
I was having trouble with import statements for javax.xml.stream.
Hovering over the import statement in Eclipse (Version:…

Steve
- 3,127
- 14
- 56
- 96
0
votes
0 answers
How to configure Maven to keep "Maven Dependencies" in Modulepath?
I've got a simple Java project with Maven.
By default dependencies loaded through Maven end up in a "Maven dependencies" library which is added to the class-path.
In eclipse it looks like this:
For whatever reason, I need those dependencies in the…

Ivan Tomić
- 171
- 6
0
votes
1 answer
Error running Sample JavaFX Maven in Netbeans 11 due to Unrecognized option: --module-path
I have tried to create a new JavaFX project following this tutorial.
https://openjfx.io/openjfx-docs/#install-javafx
I also tried the sample project.
Finally, note that you can get a similar built-in sample from NetBeans -> File -> New Project...…

Sila Siebert
- 422
- 4
- 10
0
votes
0 answers
Does the --module-path command set the modulepath temporarily?
I have noticed that once I use the --module-path command, I have to use it again when compiling the same java file.
Is this because the --module-path command appends to the module path temporarily ? If so, is there a way to set the --module-path…

Mahamed Ducale
- 119
- 1
- 8