Bug 574785 - Can't launch plugin: unable to relaunch workbench because eclipse.vm property is not set
Summary: Can't launch plugin: unable to relaunch workbench because eclipse.vm property...
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 4.21   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-10 12:40 EDT by John Boyland CLA
Modified: 2023-07-04 11:33 EDT (History)
0 users

See Also:


Attachments
Picture of error window. (152.92 KB, image/png)
2021-07-10 12:40 EDT, John Boyland CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Boyland CLA 2021-07-10 12:40:15 EDT
Created attachment 286763 [details]
Picture of error window.

When I try to run a plugin I've been developing for many years in 2021-06 as an Eclipse application, I get the error window:

   Missing System Property
   Unable to relaunch the workbench because the eclipse.vm property has not been set.

Unlike #214553, I am able to switch workspaces without problem.

Important background:
I started 2021-06 from the command line by running the "eclipse" executable directly.

Here's what About Eclipse > Installation details says: (and it includes eclipse.vm)
*** Date: Saturday, July 10, 2021 at 12:32:49 PM Eastern Daylight Time

*** Platform Details:

*** System properties:
applicationXMI=org.eclipse.ui.workbench/LegacyIDE.e4xmi
ds.delayed.keepInstances=true
ds.delayed.keepInstances.default=true
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=4.20.0.I20210611-1600
eclipse.commands=-os
macosx
-ws
cocoa
-arch
x86_64
-showsplash
/Users/boyland/.p2/pool/plugins/org.eclipse.epp.package.common_4.20.0.20210612-1200/splash.bmp
-launcher
/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/MacOS/eclipse
-name
Eclipse
--launcher.library
/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/MacOS//../../../../../.p2/pool/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.2.200.v20210527-0259/eclipse_11408.so
-startup
/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher_1.6.200.v20210416-2027.jar
--launcher.appendVmargs
-product
org.eclipse.epp.package.committers.product
-install
/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/Eclipse/../MacOS
-configuration
../Eclipse/configuration
-data
file:/Users/boyland/Documents/Eclipse/workspace-2021/
-launcher
/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/MacOS/eclipse
-product
org.eclipse.epp.package.committers.product
-install
/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/Eclipse/../MacOS
-configuration
../Eclipse/configuration
-keyring
/Users/boyland/.eclipse_keyring
-vm
/Users/boyland/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_16.0.1.v20210528-1205/jre/lib/libjli.dylib
eclipse.home.location=file:/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/Eclipse/
eclipse.launcher=/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/MacOS/eclipse
eclipse.launcher.name=Eclipse
eclipse.p2.data.area=file:/Users/boyland/.p2/
eclipse.p2.max.threads=10
eclipse.p2.profile=_Users_boyland_Eclipse_committers-2021-06_Eclipse.app_Contents_Eclipse
eclipse.product=org.eclipse.epp.package.committers.product
eclipse.startTime=1625933094230
eclipse.stateSaveDelayInterval=30000
eclipse.vm=/Users/boyland/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_16.0.1.v20210528-1205/jre/lib/libjli.dylib
eclipse.vmargs=-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Dsun.java.command=Eclipse
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
--illegal-access=permit
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Dsun.java.command=Eclipse
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
--illegal-access=permit
-Djava.class.path=/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher_1.6.200.v20210416-2027.jar
equinox.init.uuid=true
file.encoding=UTF-8
file.separator=/
ftp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16
gosh.args=--nointeractive
java.class.path=/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher_1.6.200.v20210416-2027.jar
java.class.version=60.0
java.home=/Users/boyland/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_16.0.1.v20210528-1205/jre
java.io.tmpdir=/var/folders/q2/dhhrtb4d3x598v6t0ljx7n0w0000gq/T/
java.library.path=/Users/boyland/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
java.runtime.name=OpenJDK Runtime Environment
java.runtime.version=16.0.1+9-24
java.specification.name=Java Platform API Specification
java.specification.vendor=Oracle Corporation
java.specification.version=16
java.vendor=Oracle Corporation
java.vendor.url=https://java.oracle.com/
java.vendor.url.bug=https://bugreport.java.com/bugreport/
java.version=16.0.1
java.version.date=2021-04-20
java.vm.compressedOopsMode=32-bit
java.vm.info=mixed mode
java.vm.name=OpenJDK 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Oracle Corporation
java.vm.specification.version=16
java.vm.vendor=Oracle Corporation
java.vm.version=16.0.1+9-24
jdk.debug=release
line.separator=
oomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
oomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
org.eclipse.debug.ui.breakpoints.toggleFactoriesUsed=true
org.eclipse.equinox.launcher.splash.location=/Users/boyland/.p2/pool/plugins/org.eclipse.epp.package.common_4.20.0.20210612-1200/splash.bmp
org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info
org.eclipse.swt.graphics.Resource.reportNonDisposed=true
org.eclipse.swt.internal.carbon.smallFonts=
org.eclipse.swt.internal.deviceZoom=200
org.eclipse.update.resolution_url=
org.osgi.framework.executionenvironment=OSGi/Minimum-1.0, OSGi/Minimum-1.1, OSGi/Minimum-1.2, JavaSE/compact1-1.8, JavaSE/compact2-1.8, JavaSE/compact3-1.8, JRE-1.1, J2SE-1.2, J2SE-1.3, J2SE-1.4, J2SE-1.5, JavaSE-1.6, JavaSE-1.7, JavaSE-1.8, JavaSE-9, JavaSE-10, JavaSE-11, JavaSE-12, JavaSE-13, JavaSE-14, JavaSE-15, JavaSE-16
org.osgi.framework.language=en
org.osgi.framework.os.name=MacOSX
org.osgi.framework.os.version=10.15.7
org.osgi.framework.processor=x86-64
org.osgi.framework.storage=/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/Eclipse/configuration
org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0, 1.1, 1.2", osgi.ee; osgi.ee="JRE"; version:List<Version>="1.0, 1.1", osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0",osgi.ee; osgi.ee="JavaSE/compact1"; version:List<Version>="1.8, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0",osgi.ee; osgi.ee="JavaSE/compact2"; version:List<Version>="1.8, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0",osgi.ee; osgi.ee="JavaSE/compact3"; version:List<Version>="1.8, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0"
org.osgi.framework.system.packages=com.sun.jarsigner, com.sun.java.accessibility.util, com.sun.jdi, com.sun.jdi.connect, com.sun.jdi.connect.spi, com.sun.jdi.event, com.sun.jdi.request, com.sun.management, com.sun.net.httpserver, com.sun.net.httpserver.spi, com.sun.nio.file, com.sun.nio.sctp, com.sun.security.auth, com.sun.security.auth.callback, com.sun.security.auth.login, com.sun.security.auth.module, com.sun.security.jgss, com.sun.source.doctree, com.sun.source.tree, com.sun.source.util, com.sun.tools.attach, com.sun.tools.attach.spi, com.sun.tools.javac, com.sun.tools.jconsole, java.applet, java.awt, java.awt.color, java.awt.datatransfer, java.awt.desktop, java.awt.dnd, java.awt.event, java.awt.font, java.awt.geom, java.awt.im, java.awt.im.spi, java.awt.image, java.awt.image.renderable, java.awt.print, java.beans, java.beans.beancontext, java.io, java.lang, java.lang.annotation, java.lang.constant, java.lang.instrument, java.lang.invoke, java.lang.management, java.lang.module, java.lang.ref, java.lang.reflect, java.lang.runtime, java.math, java.net, java.net.http, java.net.spi, java.nio, java.nio.channels, java.nio.channels.spi, java.nio.charset, java.nio.charset.spi, java.nio.file, java.nio.file.attribute, java.nio.file.spi, java.rmi, java.rmi.activation, java.rmi.dgc, java.rmi.registry, java.rmi.server, java.security, java.security.cert, java.security.interfaces, java.security.spec, java.sql, java.text, java.text.spi, java.time, java.time.chrono, java.time.format, java.time.temporal, java.time.zone, java.util, java.util.concurrent, java.util.concurrent.atomic, java.util.concurrent.locks, java.util.function, java.util.jar, java.util.logging, java.util.prefs, java.util.regex, java.util.spi, java.util.stream, java.util.zip, javax.accessibility, javax.annotation.processing, javax.crypto, javax.crypto.interfaces, javax.crypto.spec, javax.imageio, javax.imageio.event, javax.imageio.metadata, javax.imageio.plugins.bmp, javax.imageio.plugins.jpeg, javax.imageio.plugins.tiff, javax.imageio.spi, javax.imageio.stream, javax.lang.model, javax.lang.model.element, javax.lang.model.type, javax.lang.model.util, javax.management, javax.management.loading, javax.management.modelmbean, javax.management.monitor, javax.management.openmbean, javax.management.relation, javax.management.remote, javax.management.remote.rmi, javax.management.timer, javax.naming, javax.naming.directory, javax.naming.event, javax.naming.ldap, javax.naming.ldap.spi, javax.naming.spi, javax.net, javax.net.ssl, javax.print, javax.print.attribute, javax.print.attribute.standard, javax.print.event, javax.rmi.ssl, javax.script, javax.security.auth, javax.security.auth.callback, javax.security.auth.kerberos, javax.security.auth.login, javax.security.auth.spi, javax.security.auth.x500, javax.security.cert, javax.security.sasl, javax.smartcardio, javax.sound.midi, javax.sound.midi.spi, javax.sound.sampled, javax.sound.sampled.spi, javax.sql, javax.sql.rowset, javax.sql.rowset.serial, javax.sql.rowset.spi, javax.swing, javax.swing.border, javax.swing.colorchooser, javax.swing.event, javax.swing.filechooser, javax.swing.plaf, javax.swing.plaf.basic, javax.swing.plaf.metal, javax.swing.plaf.multi, javax.swing.plaf.nimbus, javax.swing.plaf.synth, javax.swing.table, javax.swing.text, javax.swing.text.html, javax.swing.text.html.parser, javax.swing.text.rtf, javax.swing.tree, javax.swing.undo, javax.tools, javax.transaction.xa, javax.xml, javax.xml.catalog, javax.xml.crypto, javax.xml.crypto.dom, javax.xml.crypto.dsig, javax.xml.crypto.dsig.dom, javax.xml.crypto.dsig.keyinfo, javax.xml.crypto.dsig.spec, javax.xml.datatype, javax.xml.namespace, javax.xml.parsers, javax.xml.stream, javax.xml.stream.events, javax.xml.stream.util, javax.xml.transform, javax.xml.transform.dom, javax.xml.transform.sax, javax.xml.transform.stax, javax.xml.transform.stream, javax.xml.validation, javax.xml.xpath, jdk.dynalink, jdk.dynalink.beans, jdk.dynalink.linker, jdk.dynalink.linker.support, jdk.dynalink.support, jdk.javadoc.doclet, jdk.jfr, jdk.jfr.consumer, jdk.jshell, jdk.jshell.execution, jdk.jshell.spi, jdk.jshell.tool, jdk.management.jfr, jdk.net, jdk.nio, jdk.nio.mapmode, jdk.security.jarsigner, jdk.swing.interop, netscape.javascript, org.ietf.jgss, org.w3c.dom, org.w3c.dom.bootstrap, org.w3c.dom.css, org.w3c.dom.events, org.w3c.dom.html, org.w3c.dom.ls, org.w3c.dom.ranges, org.w3c.dom.stylesheets, org.w3c.dom.traversal, org.w3c.dom.views, org.w3c.dom.xpath, org.xml.sax, org.xml.sax.ext, org.xml.sax.helpers, sun.misc, sun.reflect
org.osgi.framework.uuid=1c2f9afc-6fc5-4452-81d5-8b1cc623a776
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.10.0
org.osgi.supports.framework.extension=true
org.osgi.supports.framework.fragment=true
org.osgi.supports.framework.requirebundle=true
os.arch=x86_64
os.name=Mac OS X
os.version=10.15.7
osgi.arch=x86_64
osgi.bundles=reference:file:org.eclipse.osgi.compatibility.state_1.2.400.v20210401-1438.jar,reference:file:org.eclipse.equinox.simpleconfigurator_1.4.0.v20210315-2228.jar@1:start
osgi.bundles.defaultStartLevel=4
osgi.compatibility.bootdelegation=true
osgi.compatibility.bootdelegation.default=true
osgi.configuration.area=file:/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/Eclipse/configuration/
osgi.configuration.cascaded=false
osgi.dataAreaRequiresExplicitInit=true
osgi.framework=file:/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/Eclipse/../MacOS/../../../../../.p2/pool/plugins/org.eclipse.osgi_3.16.300.v20210525-1715.jar
osgi.framework.extensions=reference:file:org.eclipse.osgi.compatibility.state_1.2.400.v20210401-1438.jar
osgi.framework.shape=jar
osgi.framework.useSystemProperties=true
osgi.frameworkClassPath=., file:/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/Eclipse/../MacOS/../../../../../.p2/pool/plugins/org.eclipse.osgi.compatibility.state_1.2.400.v20210401-1438.jar
osgi.install.area=file:/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/MacOS/
osgi.instance.area=file:/Users/boyland/Documents/Eclipse/workspace-2021/
osgi.instance.area.default=file:/Users/boyland/eclipse-workspace/
osgi.logfile=/Users/boyland/Documents/Eclipse/workspace-2021/.metadata/.log
osgi.nl=en_US
osgi.os=macosx
osgi.requiredJavaVersion=11
osgi.splashLocation=/Users/boyland/.p2/pool/plugins/org.eclipse.epp.package.common_4.20.0.20210612-1200/splash.bmp
osgi.splashPath=file:/Users/boyland/.p2/pool/plugins/org.eclipse.platform_4.20.0.v20210611-1600
osgi.syspath=/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/Eclipse/../MacOS/../../../../../.p2/pool/plugins
osgi.tracefile=/Users/boyland/Documents/Eclipse/workspace-2021/.metadata/trace.log
osgi.ws=cocoa
path.separator=:
socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16
sun.arch.data.model=64
sun.boot.library.path=/Users/boyland/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_16.0.1.v20210528-1205/jre/lib
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeBig
sun.java.command=Eclipse
sun.jnu.encoding=UTF-8
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
user.country=US
user.dir=/Users/boyland/Eclipse/committers-2021-06/Eclipse.app/Contents/MacOS
user.home=/Users/boyland
user.language=en
user.name=boyland
user.timezone=America/New_York

[rest omitted -- environment has some confidential information]
Comment 1 John Boyland CLA 2021-07-13 12:57:24 EDT
Update 1: The problem also happens when running the executable from the finder.
Update 2:
I have found a workaround.  In the run configuration under Arguments, I can add

-vm /Users/boyland/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_16.0.1.v20210528-1205/jre/lib/libjli.dylib

and then it launches fine.  I didn't see a variable to use this: ${eclipse.vm} didn't work.  I'd suggest adding a variable for the VM to make this sort of workaround easier.
Comment 2 Eclipse Genie CLA 2023-07-04 11:33:20 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.