Thanks for the answer.
I managed to find system module with SYSTEM_MODULES.
But I still don't understand how to find my own module.
As I understand, I need to have path to compiled module in modulepath.
I tried both MODULE_SOURCE_PATH and MODULE_PATH, but I failed.
Could you please explain where module should be in order to be found.
--
Thanks,
Konstantin.
SOURCE_PATH is normally a package-oriented (JDK-8 style) path. It's not
a module-oriented path, so generally, you won't find modules on it.
You probably want to use MODULE_SOURCE_PATH.
-- Jon
On 07/26/2016 06:59 AM, Konstantin Barzilovich wrote:
Hello,
I try to use method getModuleLocation() like this:
JavaFileManager.Location location =
ToolProvider.getSystemJavaCompiler().getStandardFileManager(null, null,
null).getModuleLocation(StandardLocation.SOURCE_PATH, "myModule");
But variable 'location' is always null.
I expected UnsupportedOperationException or some result, but not null.
What am I doing wrong?