---
title: "MyEclipse6.5 无法打开工作空间"
author: "413899327"
date: "2010-11-09T14:38:30Z"
tags: []
categories: ["非技术"]
slug: "myeclipse6-5"
draft: false
lastmod: "2010-11-09T15:13:38Z"
id: 806607
url: "https://rogerfederer.iteye.com/blog/806607"
---

<span style="color:red">问题描述：</span>

今天碰到鬼了，上网用的好好的，下午吃完饭就打不开了！！！！

其中我有2个工作空间分别是
D\:\\Workspaces\\MyEclipse 6.5\\sitech和D\:\\Workspaces\\MyEclipse 6.5

我上班用的是D\:\\Workspaces\\MyEclipse 6.5\\sitech这个工作空间，在打开无果的情况下 我进入第二个工作空间 居然可以进去，就是sitech 的这个进不去。
后来在网上查找资料 指出 有2个文件需要改动：
1、D:\MyEclipse 6.5\eclipse\configuration\.settings  <span style="color:red">org.eclipse.ui.ide.prefs </span>文件
2、D:\MyEclipse 6.5\eclipse\configuration  <span style="color:red">config.ini</span>文件


D:\MyEclipse 6.5\eclipse\configuration\.settings  org.eclipse.ui.ide.prefs 文件


```java
#Tue Nov 09 14:36:48 CST 2010
RECENT_WORKSPACES_PROTOCOL=3
MAX_RECENT_WORKSPACES=5
SHOW_WORKSPACE_SELECTION_DIALOG=true
eclipse.preferences.version=1
RECENT_WORKSPACES=D\:\\Workspaces\\MyEclipse 6.5\\sitech\nD\:\\Workspaces\\MyEclipse 6.5
```



RECENT_WORKSPACES=D\:\\Workspaces\\MyEclipse 6.5\\sitech\nD\:\\Workspaces\\MyEclipse 6.5中的
D\:\\Workspaces\\MyEclipse 6.5\\sitech和D\:\\Workspaces\\MyEclipse 6.5
都是我的工作空间

D:\MyEclipse 6.5\eclipse\configuration  config.ini文件


```java
# Eclipse runtime configuration file
# This file contains a number of key/value pairs that are merged into the 
# System properties on system startup.  The values control the way the 
# runtime is structured and runs.

# Note:  Only platform:/base/ and file: URLs are supported.  In general the 
# URLs given may include a version number (e.g., .../location_1.2.3).  
# If a version is not specified, the system binds
# to the location which matches exactly or to the versioned location with the
# latest version number.  If a version number is given then only exact matches
# are considered.

# The URL for the runtime entry point.  The default value is
# platform:/base/plugins/org.eclipse.osgi 
#osgi.framework = platform:/base/plugins/org.eclipse.osgi

# The classpath for the framework found at the osgi.framework location.  This 
# comma-separated list contains either URLs or simple element names.  Simple
# names are assumed to be relative to the framework's install directory.  
# Typically this value need not be set as it is initialized by the framework itself.
# Version match searching is not done for URLs listed here.
#osgi.frameworkClassPath =

# The comma-separated list of locations to search for the splash screen file (splash.bmp).
# For each list element a subdirectory structure based on the pattern nl/<locale> is searched.
# The system binds to the first matching file.  There is no default value.
#osgi.splashPath = platform:/base/plugins/org.eclipse.platform
osgi.splashPath = platform:/base/../myeclipse/eclipse/plugins/com.genuitec.myeclipse.product

# The location of the splash screen file.  If this value is set at system startup it is used 
# in favour of the osgi.splashPath searching outlined above.  If the value is not set 
# the searching is done and this key is bound to the result of the search.
#osgi.splashLocation =

# The comma-separated list of bundles which are automatically installed and optionally started
# once the system is up and running.  Each entry if of the form
#     <URL | simple bundle location>[@ [<startlevel>] [":start"]]
# If the startlevel is omitted then the framework will use the default start level for the bundle.
# If the "start" tag is added then the bundle will be marked as started after being installed.
# Simple bundle locations are interepreted as relative to the framework's parent directory.
# The startlevel indicates the OSGi start level at which the bundle should run.
# If this value is not set, the system computes an appropriate default.
osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start, org.eclipse.core.runtime@start

# The product to run.  A given Eclipse configuration may contain many products.
# The product identified will supply the branding (window icons, title bar text) etc 
# as well as define the default application to run.  
#eclipse.product=org.eclipse.sdk.ide
eclipse.product=com.genuitec.myeclipse.product.ide

# The application to run.  The value specified here is the id of the application extension
# the runtime will find, instantiate and execute once the system is up.  Note that typically 
# the identified eclipse.product defines the default application to run.
#eclipse.application=

# The default workspace location
 osgi.instance.area.default=@user.home/workspace
#osgi.instance.area.default=D\:\\Workspaces\\MyEclipse 6.5\\sitech
# The build identifier
eclipse.buildId=M20080221-1800


# End of file marker - must be here
eof=eof
```

以上我没有任何修改完全正确的，根本就不需要网上说的那样改这改那的。
当然这只是我遇到问题的出来结果的经验告诉我的。


<span style="color:red">我的解决办法只是：选择空间的时候别马上点击下一步，要你选择工作目录的时候  有个seting--->下面有2个选择项 , 勾上就行!!!</span>---------------------------------------------------------

这是MyEclipse8.5 的：
osgi.instance.area.default=@user.home/Workspaces/MyEclipse 8.5 

这是MyEclipse6.5 的：
 osgi.instance.area.default=@user.home/workspace
下面是我改后注释掉的：
#osgi.instance.area.default=D\:\\Workspaces\\MyEclipse 6.5\\sitech



<span style="color:red">更改工作空间</span>

将其修改为：

osgi.instance.area.default=E\:\\Workspaces\\MyEclipse

  其中E:\Workspaces\MyEclipse为期望的默认加载工作空间

 但在ini文件需要写成E\:\\Workspaces\\MyEclipse

保存重启！over

下面还看到这种配法，<span style="color:red">file\</span>我没遇到过，只是看到了，如果这样也可以的话，请告诉我。
#osgi.instance.area.default=@user.home/Workspaces/MyEclipse 8.5
osgi.instance.area.default=<span style="color:red">file\</span>:/D:/workspace