Eclipse 不会在 Ubuntu 后重新启动
Eclipse does not restart in Ubuntu
我的机器上安装了 Ubuntu 16.04 和 Eclipse Oxygen 3.A。 Eclipse 重新启动不起作用。 Eclipse 关闭但不会通过 'Restart' 菜单或应用程序需要重新启动时再次启动。
更新:我清除了 .metadata/.log
,然后从菜单中重新启动了 Eclipse。像往常一样 Eclipse 关闭但没有重新启动。我必须通过单击任务栏上的图标来启动它。下面是我启动 Eclipse 时生成的日志。
!SESSION 2018-08-19 20:44:55.135 -----------------------------------------------
eclipse.buildId=4.7.3.M20180330-0640
java.version=1.8.0_181
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_IN
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.ui 2 0 2018-08-19 20:45:05.372
!MESSAGE Warnings while parsing the images from the 'org.eclipse.ui.commandImages' extension point.
!SUBENTRY 1 org.eclipse.ui 2 0 2018-08-19 20:45:05.372
!MESSAGE Cannot bind to an undefined command: plug-in='org.eclipse.lsp4e', id='org.eclipse.lsp4e.togglehighlight'
!ENTRY com.genuitec.eclipse.theming.ui 1 0 2018-08-19 20:45:08.115
!MESSAGE A DevStyle Theme is being activated on this workspace; preparing colors and configuration
!ENTRY com.genuitec.eclipse.theming.ui 1 0 2018-08-19 20:45:09.652
!MESSAGE DevStyle has archived current color configurations to alternate preferences - will be restored when switching out of the DevStyle Theme
!ENTRY com.genuitec.eclipse.patches 2 0 2018-08-19 20:45:13.331
!MESSAGE Patches instrumentation extension PerformanceJavaNavigatorContentProviderPatch ([31078] [Angular] Webclipse UI freezes constantly after closing/reopening Angular 2 projects) has not weaved class org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.
问题是 eclipse.ini
文件中 --launcher.library
参数的路径设置不正确。我通过比较另一个安装的 ini 文件发现了它。此参数的路径设置为相对路径,我将其替换为如下所示的绝对路径。
/home/<username>/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.700.v20180518-1200
我的机器上安装了 Ubuntu 16.04 和 Eclipse Oxygen 3.A。 Eclipse 重新启动不起作用。 Eclipse 关闭但不会通过 'Restart' 菜单或应用程序需要重新启动时再次启动。
更新:我清除了 .metadata/.log
,然后从菜单中重新启动了 Eclipse。像往常一样 Eclipse 关闭但没有重新启动。我必须通过单击任务栏上的图标来启动它。下面是我启动 Eclipse 时生成的日志。
!SESSION 2018-08-19 20:44:55.135 -----------------------------------------------
eclipse.buildId=4.7.3.M20180330-0640
java.version=1.8.0_181
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_IN
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.ui 2 0 2018-08-19 20:45:05.372
!MESSAGE Warnings while parsing the images from the 'org.eclipse.ui.commandImages' extension point.
!SUBENTRY 1 org.eclipse.ui 2 0 2018-08-19 20:45:05.372
!MESSAGE Cannot bind to an undefined command: plug-in='org.eclipse.lsp4e', id='org.eclipse.lsp4e.togglehighlight'
!ENTRY com.genuitec.eclipse.theming.ui 1 0 2018-08-19 20:45:08.115
!MESSAGE A DevStyle Theme is being activated on this workspace; preparing colors and configuration
!ENTRY com.genuitec.eclipse.theming.ui 1 0 2018-08-19 20:45:09.652
!MESSAGE DevStyle has archived current color configurations to alternate preferences - will be restored when switching out of the DevStyle Theme
!ENTRY com.genuitec.eclipse.patches 2 0 2018-08-19 20:45:13.331
!MESSAGE Patches instrumentation extension PerformanceJavaNavigatorContentProviderPatch ([31078] [Angular] Webclipse UI freezes constantly after closing/reopening Angular 2 projects) has not weaved class org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.
问题是 eclipse.ini
文件中 --launcher.library
参数的路径设置不正确。我通过比较另一个安装的 ini 文件发现了它。此参数的路径设置为相对路径,我将其替换为如下所示的绝对路径。
/home/<username>/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.700.v20180518-1200