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
                    
                    68
                    
            votes
                
                1 answer
            
        In Eclipse, what is the difference between modulepath and classpath?
In Eclipse, what is the difference between modulepath and classpath, and which one should I use to add a JAR file in the lib folder?
And why does the JRE System Library appear in modulepath?
         
    
    
        Invariance
        
- 1,027
- 1
- 7
- 15
                    48
                    
            votes
                
                3 answers
            
        Loading classes and resources post Java 9
I was reading this article on InfoQ quoting Reinhold:
Developers can still use the Java class path in Java 9 for the Java
  runtime to search for classes and resource files. It's just that with
  Java 9's modules, developers no longer need the…
         
    
    
        kaqqao
        
- 12,984
- 10
- 64
- 118
                    36
                    
            votes
                
                3 answers
            
        How to resolve module reads package error in java9
I am trying to understand new modularity in java 9 with spring-boot so I want to run some simple application for example: https://github.com/tmatyashovsky/java9-springboot
I am using maven 3.5.0 with java 9:
Apache Maven 3.5.0…
         
    
    
        hudi
        
- 15,555
- 47
- 142
- 246
                    32
                    
            votes
                
                2 answers
            
        Is it possible to mix --class-path and --module-path in javac (JDK 9)?
When I compile a module that depends on other modules I've compiled previously I have to specify the --module-path  option. This makes modules I depend on visible. 
But at the same time I would also like to make some non-modular Jar files… 
         
    
    
        malloc4k
        
- 1,742
- 3
- 22
- 22
                    27
                    
            votes
                
                6 answers
            
        Moving Pages folder in Next.js application to src folder
In a create-next-app Next.js application, I want to move the pages folder in the root directory to a src folder. I added a jsconfig.json with the code (below), however now I get the error message "404 | This page could not be found." Anyone have any…
         
    
    
        nmy1095
        
- 333
- 1
- 3
- 6
                    17
                    
            votes
                
                2 answers
            
        fatal error compiling invalid flag --module-path
I have a project. Originally it was a single module project with structure like this
java-cloud-sample\
    src\
        main\
            java
    pom.xml
I decided to make it into a multi-module structure - I use java 9 anyway. 
So I separated it…
         
    
    
        lapots
        
- 12,553
- 32
- 121
- 242
                    12
                    
            votes
                
                2 answers
            
        Java 9 automatic modules not found
I'm trying to define a Java 9 module. I have defined something like:
module my.module.name {
}
Then many of my files started to give me errors, that they cannot find some packages. Then I used the auto-help feature of IntelliJ and it added to my…
         
    
    
        pinpinokio
        
- 505
- 5
- 19
                    10
                    
            votes
                
                1 answer
            
        Add a custom JMOD to the module path with Java 9
I created a simple JMOD file with the jmod tool like this
$JAVA_HOME/bin/jmod create --class-path classes test/samples.jmod
Next, I tried to execute a class within that module by running:
java -mp test -m de.mypackage/de.mypackage.Test
Which…
         
    
    
        Jan Gassen
        
- 3,406
- 2
- 26
- 44
                    9
                    
            votes
                
                2 answers
            
        Java 9 error: not in a module on the module source path
Project structure
I have a project written in Java 8 and I want to update it to Java 9. So I separated the classes into 2 separate modules. Modules:
org.ggp.base with module-info.java in the directory org.ggp.base/src/main/java. Its build was…
         
    
    
        banan3'14
        
- 3,810
- 3
- 24
- 47
                    9
                    
            votes
                
                1 answer
            
        How to add several jars to module path?
I am having the following situation:
Module Address:
module org.abondar.experimental.address {
    exports org.abondar.experimental.address;
}
Module Person:
module org.abondar.experimental.person {
    requires org.abondar.experimental.address;
  …
         
    
    
        Alex Bondar
        
- 1,167
- 4
- 18
- 35
                    9
                    
            votes
                
                1 answer
            
        Which system modules are on the module path by default?
When I run an application via java -cp (without --add-modules or --limit-modules), some Java system modules are observable while the others are not.
For example, all java.se modules are observable. All java.se.ee modules are not observable. I know…
         
    
    
        ZhekaKozlov
        
- 36,558
- 20
- 126
- 155
                    7
                    
            votes
                
                3 answers
            
        JavaFX-11 in VSCode: Error: Could not find or load main class Files\Java\javafx-sdk-11.0.2\lib
I have been trying to set up JavaFX-11 in Visual Studio Code.
I found this post JavaFX-11 with VSCode, which explained how to do so, and followed the steps.
However, I need to include the module-path to the JavaFX SDK by adding an entry for the…
         
    
    
        Franklin Bello
        
- 73
- 1
- 1
- 3
                    7
                    
            votes
                
                1 answer
            
        Inspect --module-path value at runtime
Is there any way to get list of directories which are included in module-path with use of -p or --module-path arguments at runtime similar to how I whold get all classpath directories using System.getProperty("java.class.path")?
         
    
    
        Artem Petrov
        
- 772
- 4
- 17
                    7
                    
            votes
                
                1 answer
            
        Eclipse issue with java 9 and maven
I installed Version: Oxygen.1a Release (4.7.1a) Build id: 20171005-1200 supporting Java 9.
With suggested configuratio on eclipse.ini
-vm
C:\Program Files\Java\jdk-9\bin\javaw.exe
--add-modules=ALL-SYSTEM
I have developed by java 9 (java 9…
         
    
    
        venergiac
        
- 7,469
- 2
- 48
- 70
                    7
                    
            votes
                
                1 answer
            
        Java 9 automatic module dependencies cannot be resolved / module not found
I'm trying to migrate some legacy applications to the new Java 9 module system, to strengthen its encapsulation.
I'm starting from the outside-in, with the assumption that classes on the periphery will have the least external dependencies.
As you'd…
         
    
    
        Michael
        
- 7,348
- 10
- 49
- 86