unnamed-module

Java 9 migration issue - package com.mymodule is declared in unnamed module , module 'newmodule' does not read it

荒凉一梦 提交于 2019-12-22 07:59:13
问题 I have created a multimodule project with the following structure myproject |- mymodule |- src |- main |- java |- com |- mymodule |- Util.java |-newmodule |-src |-main |-java |-com |-newmodule |- Main.java |-module-info.java Now i want to use Util.java which is a non modularized code in a modularized module newmodule. i have declared following in newmodule module newmodule { requires mymodule; } Project is compiling fine, but Intellij is showing module not found and package com.mymodule is

Java 9 migration issue - package com.mymodule is declared in unnamed module , module 'newmodule' does not read it

倖福魔咒の 提交于 2019-12-22 07:59:13
问题 I have created a multimodule project with the following structure myproject |- mymodule |- src |- main |- java |- com |- mymodule |- Util.java |-newmodule |-src |-main |-java |-com |-newmodule |- Main.java |-module-info.java Now i want to use Util.java which is a non modularized code in a modularized module newmodule. i have declared following in newmodule module newmodule { requires mymodule; } Project is compiling fine, but Intellij is showing module not found and package com.mymodule is

Java 9 migration issue - package com.mymodule is declared in unnamed module , module 'newmodule' does not read it

限于喜欢 提交于 2019-12-05 15:17:06
I have created a multimodule project with the following structure myproject |- mymodule |- src |- main |- java |- com |- mymodule |- Util.java |-newmodule |-src |-main |-java |-com |-newmodule |- Main.java |-module-info.java Now i want to use Util.java which is a non modularized code in a modularized module newmodule. i have declared following in newmodule module newmodule { requires mymodule; } Project is compiling fine, but Intellij is showing module not found and package com.mymodule is declared in unnamed module , module 'newmodule' does not read it. How to resolve this issue? And one more

How many unnamed modules are created in Java 9?

老子叫甜甜 提交于 2019-12-01 05:17:23
I am trying to understand how JPMS works. From here The classpath is not completely gone yet. All JARs (modular or not) and classes on the classpath will be contained in the Unnamed Module. Similar to automatic modules, it exports all packages and reads all other modules. But it does not have a name, obviously. For that reason, it cannot be required and read by named application modules. The unnamed module in turn can access all other modules. Please, note ...on the classpath will be contained in the Unnamed Module . Module is singular. From here For compatibility, all code on the classpath is

How many unnamed modules are created in Java 9?

安稳与你 提交于 2019-12-01 02:18:07
问题 I am trying to understand how JPMS works. From here The classpath is not completely gone yet. All JARs (modular or not) and classes on the classpath will be contained in the Unnamed Module. Similar to automatic modules, it exports all packages and reads all other modules. But it does not have a name, obviously. For that reason, it cannot be required and read by named application modules. The unnamed module in turn can access all other modules. Please, note ...on the classpath will be