Re: Error:java: 无效的标记: --add-exports=java.base/sun.net.util=ALL-UNNAMED

2020-01-02 Thread Chesnay Schepler
For future reference, this issue (and the solution) are documented here . On 30/12/2019 08:32, Jark Wu wrote: I have the same problem when upgrade my IDEA to 2019.3.1. And the Biao's solution works for me too.

Re: Error:java: 无效的标记: --add-exports=java.base/sun.net.util=ALL-UNNAMED

2019-12-29 Thread Jark Wu
I have the same problem when upgrade my IDEA to 2019.3.1. And the Biao's solution works for me too. Best, Jark On Thu, 21 Nov 2019 at 22:23, 刘建刚 wrote: > Thank you very much. It works for me. > > > 在 2019年11月14日,下午1:06,Biao Liu 写道: > > > > Hi, > > > > I have encountered the same issue when set

Re: Error:java: 无效的标记: --add-exports=java.base/sun.net.util=ALL-UNNAMED

2019-11-21 Thread 刘建刚
Thank you very much. It works for me. > 在 2019年11月14日,下午1:06,Biao Liu 写道: > > Hi, > > I have encountered the same issue when setting up a dev environment. > > It seems that the my Intellij (2019.2.1) unexpectedly activates java11 > profile of maven. It doesn't match the Java compiler (JDK8). I

Re: Error:java: 无效的标记: --add-exports=java.base/sun.net.util=ALL-UNNAMED

2019-11-13 Thread Biao Liu
Hi, I have encountered the same issue when setting up a dev environment. It seems that the my Intellij (2019.2.1) unexpectedly activates java11 profile of maven. It doesn't match the Java compiler (JDK8). I'm not sure why it happened silently. So for me, the solution is "Intellij" -> "View" -> "

Re: Error:java: 无效的标记: --add-exports=java.base/sun.net.util=ALL-UNNAMED

2019-11-04 Thread OpenInx
Hi I met the same problem before. After some digging, I find that the idea will detect the JDK version and choose whether to use the jdk11 option to run the flink maven building. if you are in jdk11 env, then it will add the option --add-exports when maven building in IDEA. For my case, I was i

Re: Error:java: 无效的标记: --add-exports=java.base/sun.net.util=ALL-UNNAMED

2019-11-04 Thread Till Rohrmann
Try to reimport that maven project. This should resolve this issue. Cheers, Till On Mon, Nov 4, 2019 at 10:34 AM 刘建刚 wrote: > Hi, I am using flink 1.9 in idea. But when I run a unit test in idea. > The idea reports the following error:"Error:java: 无效的标记: > --add-exports=java.base/sun.net.