[
https://issues.apache.org/jira/browse/FLINK-36448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888327#comment-17888327
]
xuhuang commented on FLINK-36448:
---------------------------------
Hi, [~mallikarjuna]
I also encountered this problem a few days ago, but I don't know the specific
reason. I solved this problem by updating the IDEA version (community edition)
from 2024.1 to 2024.2.3.
Maybe you can try reloading the project or reinstalling your IDEA.
> Compilation fails in IntelliJ
> -----------------------------
>
> Key: FLINK-36448
> URL: https://issues.apache.org/jira/browse/FLINK-36448
> Project: Flink
> Issue Type: Bug
> Components: API / Core
> Reporter: Kumar Mallikarjuna
> Priority: Major
> Labels: build, build-failure, intellij
> Attachments: image-2024-10-10-21-02-36-758.png
>
>
> I'm unable to build master (as of "c9c946f") with IntelliJ. Compilation and
> tests work just fine when using Maven directly. However building the project
> and running unit tests with IntelliJ fail with the below error:
>
> {code:java}
> /Users/kumarmallikarjuna/Workspace/confluent/flink/flink-core/src/main/java/org/apache/flink/management/jmx/JMXServer.java
> package sun.rmi.registry is not visible
> (package sun.rmi.registry is declared in module java.rmi, which does not
> export it to the unnamed module)
> sun.rmi.registry{code}
> I also tried the "Use '–release' option for cross-compilation" setting in
> IntelliJ but that leads to the same error. I am using JDK11 for compilation.
> cc: [~mapohl]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)