1 <!-- 2 Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. 3 Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. 4 --> 5 <html> 6 <head> 7 <title>Mission Control - Running Eclipse on JDK</title> 8 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" > 9 <link rel ="stylesheet" type="text/css" href="../stylesheet.css" title="Style"/> 10 </head> 11 12 <body> 13 14 <table cellpadding="0" cellspacing="0" border="0" width="760"> 15 16 <tr> 17 <td> 18 <table cellpadding="0" cellspacing="0" border="0" width="100%"> 19 <tr> 20 <td> 21 <div class="bannertitle">Mission Control for Eclipse</div><br> 22 </td> 23 </tr> 24 </table> 25 </td> 26 </tr> 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"> | 1 <!-- 2 Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. 3 Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. 4 --> 5 <html> 6 <head> 7 <title>JDK Mission Control - Running Eclipse on JDK</title> 8 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" > 9 <link rel ="stylesheet" type="text/css" href="../stylesheet.css" title="Style"/> 10 </head> 11 12 <body> 13 14 <table cellpadding="0" cellspacing="0" border="0" width="760"> 15 16 <tr> 17 <td> 18 <table cellpadding="0" cellspacing="0" border="0" width="100%"> 19 <tr> 20 <td> 21 <div class="bannertitle">JDK Mission Control for Eclipse</div><br> 22 </td> 23 </tr> 24 </table> 25 </td> 26 </tr> 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 JDK 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 JDK 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"> |