当我们用MyEclipse进行开发时,如MyEclipse 8.5,每次启动默认的工作空间为
C:\Documents and Settings\Administrator\Workspaces\MyEclipse 8.5
而有时我们希望在启动MyEclipse时就进入我们所设置的工作空间,其设置如下:
修改如下配置文件,可以解决该问题:
"D:\Program Files\MyEclipse \MyEclipse 8.5\configuration\config.ini"
该目录为MyEclipse的安装根目录下configuration目录下的config.ini文件。使用EditPlus或者notepad打开该文件如下所示:
#Generated by Pulse at Fri May 21 09:57:03 CST 2010 #Fri May 21 09:57:03 CST 2010 com.genuitec.pulse.client.handshake.id=c9bf19e2-fed1-409c-84e6-3e709536f6ac org.eclipse.update.reconcile=false eclipse.p2.profile=com.poweredbypulse.profile-0-rb-578452-1274341810546 osgi.instance.area.default=@user.home/Workspaces/MyEclipse 8.5 osgi.framework=file\:../Common/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar com.genuitec.pulse.client.credentials=cTOb7s2f3UXTnmnso/3saVlZNcsVYnKlA1cjOHZSvYRFZ35Xo13oQqBXZqPm+A+H9OLrKa2KQnub yZyGnsvnFebj1Y3NRNStATKJtB1itGImSAf4bTK+7WwSeLTOxHBkhX0DWm02aSmu7auXFH0kzlg2 8AtN4vblt5Lx2RrzgU0\= osgi.splashLocation=D\:\\Program Files\\Genuitec_\\Common\\plugins\\com.genuitec.myeclipse.product85_8.5.0.me201003250242\\splash.bmp com.genuitec.pulse.client.blueprint.id=rmb-758596 com.genuitec.pulse.common.server.url=https\://www.poweredbypulse.com\:443 osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.100.v201003231800.jar@1\:start org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info eclipse.product=com.genuitec.myeclipse.product85.ide osgi.splashPath=platform\:/base/plugins/com.genuitec.myeclipse.product85 eclipse.p2.data.area=file\:/C\:/Program Files/Genuitec/Common/configuration/ osgi.bundles.defaultStartLevel=4 osgi.framework.extensions= com.genuitec.pulse.client.basedir.location.override=C\:\\Program Files\\Genuitec
大概在第6行有如下内容:
osgi.instance.area.default=@user.home/Workspaces/MyEclipse 8.5
将其修改为:
osgi.instance.area.default=E\:\\Workspaces\\Project
其中E:\Workspaces\Project为期望的默认加载工作空间
保存重启!Ok!
C:\Documents and Settings\Administrator\Workspaces\MyEclipse 8.5
而有时我们希望在启动MyEclipse时就进入我们所设置的工作空间,其设置如下:
修改如下配置文件,可以解决该问题:
"D:\Program Files\MyEclipse \MyEclipse 8.5\configuration\config.ini"
该目录为MyEclipse的安装根目录下configuration目录下的config.ini文件。使用EditPlus或者notepad打开该文件如下所示:
#Generated by Pulse at Fri May 21 09:57:03 CST 2010 #Fri May 21 09:57:03 CST 2010 com.genuitec.pulse.client.handshake.id=c9bf19e2-fed1-409c-84e6-3e709536f6ac org.eclipse.update.reconcile=false eclipse.p2.profile=com.poweredbypulse.profile-0-rb-578452-1274341810546 osgi.instance.area.default=@user.home/Workspaces/MyEclipse 8.5 osgi.framework=file\:../Common/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar com.genuitec.pulse.client.credentials=cTOb7s2f3UXTnmnso/3saVlZNcsVYnKlA1cjOHZSvYRFZ35Xo13oQqBXZqPm+A+H9OLrKa2KQnub yZyGnsvnFebj1Y3NRNStATKJtB1itGImSAf4bTK+7WwSeLTOxHBkhX0DWm02aSmu7auXFH0kzlg2 8AtN4vblt5Lx2RrzgU0\= osgi.splashLocation=D\:\\Program Files\\Genuitec_\\Common\\plugins\\com.genuitec.myeclipse.product85_8.5.0.me201003250242\\splash.bmp com.genuitec.pulse.client.blueprint.id=rmb-758596 com.genuitec.pulse.common.server.url=https\://www.poweredbypulse.com\:443 osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.100.v201003231800.jar@1\:start org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info eclipse.product=com.genuitec.myeclipse.product85.ide osgi.splashPath=platform\:/base/plugins/com.genuitec.myeclipse.product85 eclipse.p2.data.area=file\:/C\:/Program Files/Genuitec/Common/configuration/ osgi.bundles.defaultStartLevel=4 osgi.framework.extensions= com.genuitec.pulse.client.basedir.location.override=C\:\\Program Files\\Genuitec
大概在第6行有如下内容:
osgi.instance.area.default=@user.home/Workspaces/MyEclipse 8.5
将其修改为:
osgi.instance.area.default=E\:\\Workspaces\\Project
其中E:\Workspaces\Project为期望的默认加载工作空间
保存重启!Ok!