---
title: "解决MyEclipse 8.0 升级至 8.5 无法启动 No applicati"
author: "zhujs"
date: "2010-06-30T17:02:42Z"
tags: ["Eclipse", "IDE", "Java", "Myeclipse", "OSGI"]
categories: ["非技术"]
slug: "myeclipse-8-0-8-5-no-applicati"
draft: false
lastmod: "2010-06-30T17:03:37Z"
id: 702776
url: "https://zhujs.iteye.com/blog/702776"
---

```java
eclipse.product=com.genuitec.myeclipse.product8.ide

　　 osgi.splashPath=platform\:/base/plugins/com.genuit ec.myeclipse.product8

```

　　改为：

　　 
```java
eclipse.product=com.genuitec.myeclipse.product85.ide

　osgi.splashPath=platform\:/base/plugins/com.genuitec.myeclipse.product85
```


　　OK!!

　　前两天更新MyEclipse的SVN插件的时候提示可以从8.0更新到8.5，于是很Happy地点了更新。

　　当时也准备关闭才更新的，也没注意是否更新成功，今天再次启动，提示 Message并无法启动......@_@

　　还好，无法启动有log看： !SESSION 2010-03-29 00:39:45.734 -----------------------------------------------

　　eclipse.buildId=unknown

　　java.version=1.6.0_13

　　 java.vendor=Sun Microsystems Inc.

　　BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN

　　Command-line arguments: -os win32 -ws win32 -arch x86

　　!ENTRY org.eclipse.equinox.app 0 0 2010-03-29 00:40:23.281

　　!MESSAGE Product com.genuitec.myeclipse.product8.ide could not be found.

　　!ENTRY org.eclipse.equinox.p2.repository 4 0 2010-03-29 00:40:24.250

　　!MESSAGE ProvisioningEventBus could not be obtained. Metadata caches may not be cleaned up properly.

　　!ENTRY org.eclipse.osgi 4 0 2010-03-29 00:40:31.421

　　!MESSAGE Application error

　　!STACK 1

　　java.lang.RuntimeException: No application id has been found.

　　at org.eclipse.equinox.internal.app.EclipseAppContain er.startDefaultApp(EclipseAppContainer.java:236)

　　at org.eclipse.equinox.internal.app.MainApplicationLa uncher.run(MainApplicationLauncher.java:29)

　　at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java:110)

　　at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:79)

　　at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:368)

　　at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:179)

　　at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

　　at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)

　　at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)

　　at java.lang.reflect.Method.invoke(Method.java:597)

　　at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:559)

　　at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:514)

　　at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

　　应用程序错误，是一个RuntimeException，应用程序ID没找到。

　　看第二行，eclipse.buildId=unknown

　　再看看其余两个Msg

　　 com.genuitec.myeclipse.product8.ide找不到

　　ProvisioningEventBus无法获得，元数据缓存可以没有清理好。

　　估想着就是Myeclipse.product8.ide找不到的问题，找找看吧。

　　在MyEclipse安装根目录有myeclipse.ini startup目标包有了

　　launcher.library的目标文件夹也有了

　　jvm就不用看了，运行都运行不了怎么来的错误提示（其实启动包和运行lib也一样，不过就是不放心，顺便看一眼）

　　应该是配置的问题，就在安装目录下configuration文件夹里有个config.ini com.genuitec.pulse.client.handshake.id 和 com.genuitec.pulse.client.credentials有关客户信息，这就用******注掉了，是有信息的

　　很醒目的

　　eclipse.product=com.genuitec.myeclipse.product8.id e，立刻搜索了一下。

　　咦？D盘MyEclipse的安装目录下有一个\8.0GACommonDirectory\plugins \com.genuitec.myeclip se.product8_8.0.0.me200911192201

　　但文件夹名却与配置文件中的eclipse.product的配置信息不对应，其它地方就再也找不到product对应的文件夹或者包了，看来应该有映射文件或者注册信息

　　再看看config.ini

　　 org.eclipse.equinox.simpleconfigurator.configUrl对应了一个bundles.info

　　bundles.info？？？正好了....去找出来看看（这文件太大，就不贴出来了）

　　用普通文档编辑器就能打开，正好是插件名对应插件包或文件夹的配置文件。

　　在里面搜索com.genuitec.myeclipse.product8.ide，没找到！

　　缩小搜索范围吧，找com.genuitec.myeclipse.product8，找到两目标，但是却不是product8，而是com.genuitec.myeclipse.product85

　　一想，哦！正好是8.0更新8.5之后启动不起来的，看来自动升级没把config给改过来。

　　这.....莫非是MyEclipse的Bug？

　　不管是不是Bug，还得靠MyEclipse做东西的，赶紧修改config.ini，把这俩参数给改了

　　 eclipse.product=com.genuitec.myeclipse.product85.i de

　　 osgi.splashPath=platform\:/base/plugins/com.genuit ec.myeclipse.product85

　　保存配置文件，重新启动.....Bingo！体验8.5去喽！