RFR(M) 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
mandy.chung at oracle.com
Thu Nov 8 21:02:06 UTC 2018
On 11/8/18 12:37 PM, dean.long at oracle.com wrote:
> On 11/8/18 11:49 AM, Mandy Chung wrote:
>> This is strange. upgrade module path precedes the application module
>> path in the search path. I would not expect --module-path would help.
> Sorry, the error is if I remove both --upgrade-module-path and
> Putting back either one makes it work again, so I can remove either one.
> I don't remember why I added --module-path, but it was probably when I was
> experimented with using --module-source-path instead of -sourcepath.
> Should I go ahead and remove --module-path?
+1. No need to set --module-path.
>> Can you get the full javac command to see what are being compiled
>> and all the paths set in these options?
> It's very long, but I can summarize. -sourcepath contains source
> paths under
> src/jdk.internal.vm.compiler only. The files we are compiling come from
> _gensrc_proc_files, which contains only files under
Since no change in javac command after removing --module-path, we are
>> On 11/8/18 11:28 AM, dean.long at oracle.com wrote:
>>> I get this without --module-path:
>>> Fatal Error: Unable to find package java.lang in classpath or
>>> I guess before, when it was using the unnamed module, that it was
>>> picking up these
>>> system classes from the jdk10 bootjdk, which doesn't seem ideal.
>>> It works without --upgrade-module-path, so I can remove that.
>>> On 11/7/18 8:12 PM, Mandy Chung wrote:
>>>> Hi Dean,
>>>> On 11/7/18 7:56 PM, dean.long at oracle.com wrote:
>>>> 108 --module-path $(JDK_OUTPUTDIR)/modules \
>>>> 109 --upgrade-module-path $(JDK_OUTPUTDIR)/modules --system none \
>>>> You added `--module-path` option to javac. What error did you
>>>> get without it? It looks a bit suspicious. I wonder if
>>>> the `--upgrade-module-path` is needed as --system none is set.
>>>> We need Jon to advice on this javac command.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev