27
28 <tr>
29 <td style="height: 20px; background-color: #FFFFFF;"></td>
30 </tr>
31
32 <tr>
33 <td class="body-text">
34 <p>To fully take advantage of running Mission Control in your Eclipse IDE, you need to run Eclipse on a JDK installation. <br>
35 Attaching to locally running JVMs will only work if you're running with a JDK. </p>
36 <p>Follow the instructions below to run on a HotSpot JDK.</p>
37 <p>The easiest way to change the JVM on which to start Eclipse is by modifying the eclipse.ini file. You can also set the -vm on the command line used to start Eclipse. In windows you would typically do that in the shortcut you use to launch Eclipse. Here is an example ini file: <blockquote> <p><code>-showsplash<br>org.eclipse.platform<br>-vm <br>D:/java/jdk7_40/jre/bin/</code></p></blockquote>
38 <p>You can also configure JVM options by using -vmargs on commandline or eclipse.ini: <blockquote> <p><code>-showsplash<br>org.eclipse.platform<br>-vm <br>D:/java/jdk8_131/jre/bin/<br>-vmargs<br><JVM options on separate lines></code></p></blockquote>
39 <p>If you use JDK 9 (or later) to run Eclipse, the following JVM options are needed for Mission Control to work properly:</p>
40 <blockquote> <p><code>-Djdk.attach.allowAttachSelf=true
41 <br>--add-exports=java.xml/com.sun.org.apache.xerces.internal.parsers=ALL-UNNAMED
42 <br>--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
43 <br>--add-exports=java.management/sun.management=ALL-UNNAMED
44 <br>--add-exports=java.management/sun.management.counter.perf=ALL-UNNAMED
45 <br>--add-exports=jdk.management.agent/jdk.internal.agent=ALL-UNNAMED
46 <br>--add-exports=jdk.attach/sun.tools.attach=ALL-UNNAMED
47 <br>--add-exports=java.desktop/sun.awt.windows=ALL-UNNAMED
48 <br>--add-opens=java.base/java.net=ALL-UNNAMED
49 <br>--add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED</code></p> </blockquote>
50 <p>If running on Mac OS, also add:</p>
51 <blockquote> <p><code>--add-exports=java.desktop/sun.lwawt.macosx=ALL-UNNAMED</code></p> </blockquote>
52 <p>If running on Linux, also add:</p>
53 <blockquote> <p><code>--add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED</code></p> </blockquote>
54 </td>
55 </tr>
56
57 <tr>
58 <td class="footer">
59 Oracle is a registered trademark of Oracle Corporation and/or its<br>
60 affiliates. Other names may be trademarks of their respective owners.<br>
61 Eclipse is a trademark of Eclipse Foundation, Inc.
62 </td>
63 </tr>
64 </table>
65 </body>
66 </html>
|
27
28 <tr>
29 <td style="height: 20px; background-color: #FFFFFF;"></td>
30 </tr>
31
32 <tr>
33 <td class="body-text">
34 <p>To fully take advantage of running Mission Control in your Eclipse IDE, you need to run Eclipse on a JDK installation. <br>
35 Attaching to locally running JVMs will only work if you're running with a JDK. </p>
36 <p>Follow the instructions below to run on a HotSpot JDK.</p>
37 <p>The easiest way to change the JVM on which to start Eclipse is by modifying the eclipse.ini file. You can also set the -vm on the command line used to start Eclipse. In windows you would typically do that in the shortcut you use to launch Eclipse. Here is an example ini file: <blockquote> <p><code>-showsplash<br>org.eclipse.platform<br>-vm <br>D:/java/jdk7_40/jre/bin/</code></p></blockquote>
38 <p>You can also configure JVM options by using -vmargs on commandline or eclipse.ini: <blockquote> <p><code>-showsplash<br>org.eclipse.platform<br>-vm <br>D:/java/jdk8_131/jre/bin/<br>-vmargs<br><JVM options on separate lines></code></p></blockquote>
39 <p>If you use JDK 9 (or later) to run Eclipse, the following JVM options are needed for Mission Control to work properly:</p>
40 <blockquote> <p><code>-Djdk.attach.allowAttachSelf=true
41 <br>--add-exports=java.xml/com.sun.org.apache.xerces.internal.parsers=ALL-UNNAMED
42 <br>--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
43 <br>--add-exports=java.management/sun.management=ALL-UNNAMED
44 <br>--add-exports=java.management/sun.management.counter.perf=ALL-UNNAMED
45 <br>--add-exports=jdk.management.agent/jdk.internal.agent=ALL-UNNAMED
46 <br>--add-exports=jdk.attach/sun.tools.attach=ALL-UNNAMED
47 <br>--add-opens=java.base/java.net=ALL-UNNAMED
48 <br>--add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED</code></p> </blockquote>
49 <p>If running on Windows, also add:</p>
50 <blockquote> <p><code>--add-exports=java.desktop/sun.awt.windows=ALL-UNNAMED</code></p> </blockquote>
51 <p>If running on Mac OS, also add:</p>
52 <blockquote> <p><code>--add-exports=java.desktop/sun.lwawt.macosx=ALL-UNNAMED</code></p> </blockquote>
53 <p>If running on Linux, also add:</p>
54 <blockquote> <p><code>--add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED</code></p> </blockquote>
55 </td>
56 </tr>
57
58 <tr>
59 <td class="footer">
60 Oracle is a registered trademark of Oracle Corporation and/or its<br>
61 affiliates. Other names may be trademarks of their respective owners.<br>
62 Eclipse is a trademark of Eclipse Foundation, Inc.
63 </td>
64 </tr>
65 </table>
66 </body>
67 </html>
|