title: How to make an internal Java package accessible in Eclipse?
body: <p>I have a legacy Java (8) project opened in Eclipse with Java 11 (or Java 10). Eclipse is now rightly complaining about inaccessible packages. E.g. <code>com.apple.laf.AquaComboBoxUI</code>.</p>
  
  <p>When compiling from command line I can make those packages  accessible explicitly by adding a parameter to <code>javac</code>:</p>
  
  <p><code>--add-exports java.desktop/com.apple.laf=ALL-UNNAMED</code></p>
  
  <p>Is there a way to do the same from inside the Eclipse IDE? I tried to add an accessible rule on the JDK library. But that seems to have no effect. Any ideas?</p>
  
  <p>And yes, I know, we should migrate the project to use only official APIs. But that's a long, long way...</p>