changeset 159:270ac3859d2f

JMC-6470: Use the JVM on the path by default for the RCP version of JMC on all platforms Reviewed-by: ghb
author hirt <>
date Mon, 20 May 2019 12:35:52 +0200
parents 183487546804
children 12cd4d1b437a
files application/org.openjdk.jmc.rcp.product/jmc.product
diffstat 2 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/	Thu May 16 12:33:19 2019 +0200
+++ b/	Mon May 20 12:35:52 2019 +0200
@@ -286,24 +286,26 @@
 Once build has finished the results will be in the `target` directory
 ## Running the Locally Built JMC
-The built JMC will end up in the `target` folder in the root. To run it, go to `target/products/org.openjdk.jmc/<platform>` to find the launcher. Don't forget to override the vm flag with the JVM you wish to use for running JMC.
+The built JMC will end up in the `target` folder in the root. The launcher is located in `target/products/org.openjdk.jmc/<platform>`. By default whichever JRE is on the path 
+will be used. Remember to set it to a JDK (rather than a JRE) if you want the launched mission control to automatically discover locally running JVMs. To override which JVM 
+to use when launching, add -vm and the path to a directory where a JDK java launcher is located, for example -vm $JAVA_HOME/bin.
 Here is an example for Mac OS X:
-target/products/org.openjdk.jmc/macosx/cocoa/x86_64/JDK\ Mission\ -vm $JAVA_HOME/bin
+target/products/org.openjdk.jmc/macosx/cocoa/x86_64/JDK\ Mission\
 Here is an example for Linux:
-target/products/org.openjdk.jmc/linux/gtk/x86_64/jmc -vm $JAVA_HOME/bin
 And here is an example for Windows x64:
-target\products\org.openjdk.jmc\win32\win32\x86_64\jmc.exe -vm %JAVA_HOME%\bin
 ## Using the Built JMC Update Site in Eclipse
--- a/application/org.openjdk.jmc.rcp.product/jmc.product	Thu May 16 12:33:19 2019 +0200
+++ b/application/org.openjdk.jmc.rcp.product/jmc.product	Mon May 20 12:35:52 2019 +0200
@@ -46,13 +46,15 @@
+      <!-- Note: if embedding a JDK, remember to override the -vm option on the various platforms to 
+           point to the relative path of your embedded JDK. e.g.
+           <programArgsMac>-ws cocoa -vm ../jdk/Contents/Home/bin/</programArgsMac> -->
-      <!-- use default Java from PATH on Linux -->
-      <programArgsMac>-ws cocoa -vm ../jdk/Contents/Home/bin/
+      <programArgsMac>-ws cocoa
-      <programArgsWin>-vm ./
+      <programArgsWin>
       <vmArgs>-XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -XX:FlightRecorderOptions=stackdepth=128 -XX:+FlightRecorder -XX:StartFlightRecording=name=JMC_Default,maxsize=100m -Djdk.attach.allowAttachSelf=true --add-exports=java.xml/ --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED --add-exports=jdk.attach/ --add-opens=java.base/ --add-opens=jdk.attach/