咱們先在這個目錄下新建一個文件: MyEclipse 10.6.bat , 文件內容以下:
start eclipse\eclipse.exe -vm jre\bin\javaw.exe
接下來只須要改一個Eclipse 插件的配置文件就能夠實現綠色版運行了, 咱們用記事本等文本編輯器打開下面的這個文件 com.genuitec.eclipse.MyEclipse.link:
文件原始內容以下所示:
path=d:\\Java\\MyEclipse6.0\\myeclipse
這個是指定 myeclipse 這個插件目錄的位置的, 咱們把它改爲相對路徑便可:
path=..\\myeclipse
OK, 完工了, 把MyEclipse 10.6整個目錄複製到你的移動硬盤上或者刻成光盤。之後當你的系統重作後或者拿着移動硬盤到了一個根本沒裝過 Java 工具的電腦上後, 雙擊批處理文件MyEclipse 10.6.bat 便可當即啓動 MyEclipse 來工做! 複製到硬盤上的任何目錄(注意路徑建議不要帶空格或者漢字), 也能夠一樣啓動, 免去咱們安裝和配置之苦。java
======================================================eclipse
安裝文件:myeclipse-8.6.1-win32.exejvm
安裝目錄:D:/MyEclipse/8.6編輯器
運行安裝:ide
MyEclipse Install Directory -->C:/Users/Administrator/AppData/Local/Genuitec/MyEclipse-8.6svn
修改成:D:/MyEclipse/8.6.1/MyEclipse工具
這樣的話,後面全部配置文件的修改,都是以D:/MyEclipse/8.6.1/MyEclipse/爲相對根路徑來修改的ui
Common directory --> C:/Users/Administrator/AppData/Local/Genuitec/Commonurl
修改成:D:/MyEclipse/8.6.1/Commonspa
安裝完成:
選擇默認工做區:D:/MyEclipse/workspace/8.6.1
修改配置文件:D:/MyEclipse/8.6.1/MyEclipse/myeclipse.ini
#utf8 (do not remove)
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-install
D:/MyEclipse/8.6.1/MyEclipse
-vm
D:/MyEclipse/8.6.1/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
-configuration
D:/MyEclipse/8.6.1/MyEclipse/configuration
-vmargs
-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m
所有改成相對路徑
#utf8 (do not remove)
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-install
../MyEclipse
-vm
../Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll
-configuration
../MyEclipse/configuration
-vmargs
-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m
也能夠修改myeclipse.ini中配置的jvm路徑
編輯文件:D:/MyEclipse/8.6.1/MyEclipse/configuration/.settings/org.eclipse.ui.ide.prefs
#Fri Feb 24 11:19:52 CST 2012
RECENT_WORKSPACES_PROTOCOL=3
MAX_RECENT_WORKSPACES=5
SHOW_WORKSPACE_SELECTION_DIALOG=false
eclipse.preferences.version=1
RECENT_WORKSPACES=D/://MyEclipse//workspace//8.6.1
修改成:
#Fri Feb 24 09:35:06 CST 2012
RECENT_WORKSPACES_PROTOCOL=3
MAX_RECENT_WORKSPACES=5
SHOW_WORKSPACE_SELECTION_DIALOG=false
eclipse.preferences.version=1
RECENT_WORKSPACES=..//..//workspace//8.6.1
修改文件:D:/MyEclipse/8.6.1/MyEclipse/configuration/org.eclipse.equinox.simpleconfigurator目錄下bundles.info中配置的插件路徑,
替換內容:"file:/D:/MyEclipse/8.6.1/Common/" 所有替換成"file/:../Common/",
file:/D:/MyEclipse/eclipse-plugins/ 所有替換成"file/:../../eclipse-plugins/"
修改:D:/MyEclipse/8.6.1/MyEclipse/configuration/config.ini
#Generated by Pulse at Fri Feb 24 11:20:08 CST 2012
#Fri Feb 24 11:20:08 CST 2012
org.eclipse.update.reconcile=false
com.genuitec.pulse.client.handshake.id=b519db33-4a06-46ea-bb86-3b1fa36f2bf6
eclipse.p2.profile=com.poweredbypulse.profile-0-rb-578452-1330053273594
osgi.instance.area.default=@user.home/Workspaces/MyEclipse 8.6
osgi.framework=file/:../Common/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
com.genuitec.pulse.client.credentials=IH5xjImaOQGHFt5qtlwPnUWaVWV3X42/E6volPHK5yaV52trXdqWLvCH7N5P1PRx/UGBAocKGiSj nat9nCUhjKD4qMfMLAhYgIK56dOq3sFamO8SQJJHd1sQfk7U5fN0jjL6/RthMwtu3UIURIH6Ej7L vfAc42w0Fc2Mb9XjNR4/=
osgi.splashLocation=D/://MyEclipse//8.6.1//Common//plugins//com.genuitec.myeclipse.product85_8.6.1.me201011171823//splash.bmp
com.genuitec.pulse.client.blueprint.id=rb-578452-1330053273594
osgi.bundles=reference/:file/:org.eclipse.equinox.simpleconfigurator_1.0.100.v201007291200.jar@1/:start
com.genuitec.pulse.common.server.url=https/://www.poweredbypulse.com/:443
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
osgi.framework.extensions=reference/:file/:javax.transaction_1.1.1.v201002111330.jar
osgi.bundles.defaultStartLevel=4
eclipse.p2.data.area=file/:/C/:/Users/Administrator/AppData/Local/Genuitec/Common/configuration/
com.genuitec.pulse.client.basedir.location.override=C/://Users//Administrator//AppData//Local//Genuitec
全改成相對路徑
#Generated by Pulse at Fri Feb 24 11:20:08 CST 2012
#Fri Feb 24 11:20:08 CST 2012
org.eclipse.update.reconcile=false
com.genuitec.pulse.client.handshake.id=b519db33-4a06-46ea-bb86-3b1fa36f2bf6
eclipse.p2.profile=com.poweredbypulse.profile-0-rb-578452-1330053273594
osgi.instance.area.default=@user.home/Workspaces/MyEclipse 8.6
osgi.framework=file/:../Common/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
com.genuitec.pulse.client.credentials=IH5xjImaOQGHFt5qtlwPnUWaVWV3X42/E6volPHK5yaV52trXdqWLvCH7N5P1PRx/UGBAocKGiSj nat9nCUhjKD4qMfMLAhYgIK56dOq3sFamO8SQJJHd1sQfk7U5fN0jjL6/RthMwtu3UIURIH6Ej7L vfAc42w0Fc2Mb9XjNR4/=
osgi.splashLocation=..//Common//plugins//com.genuitec.myeclipse.product85_8.6.1.me201011171823//splash.bmp
com.genuitec.pulse.client.blueprint.id=rb-578452-1330053273594
osgi.bundles=reference/:file/:org.eclipse.equinox.simpleconfigurator_1.0.100.v201007291200.jar@1/:start
com.genuitec.pulse.common.server.url=https/://www.poweredbypulse.com/:443
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
osgi.framework.extensions=reference/:file/:javax.transaction_1.1.1.v201002111330.jar
osgi.bundles.defaultStartLevel=4
eclipse.p2.data.area=file/:../Genuitec/Common/configuration/
com.genuitec.pulse.client.basedir.location.override=..//Genuitec
C:/Users/Administrator/AppData/Local/Genuitec 這個目錄改成:D:/MyEclipse/8.6.1/MyEclipse/Genuitec
安裝插件,建議都下載相關插件,使用link進行使用
全部插件都下載解壓到:D:/MyEclipse/eclipse-plugins
一、安裝svn插件:site-1.6.18.zip
解壓目錄:D:/MyEclipse/eclipse-plugins/svn-1.6.18
插件安裝目錄:D:/MyEclipse/8.6.1/ MyEclipse /dropins
建立svn插件連接文件:svn.link
內容:path=..//..//eclipse-plugins//svn-1.6.18
每安裝完插件都要再修改文件:D:/MyEclipse/8.6.1/MyEclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info,
替換內容:file:/D:/MyEclipse/eclipse-plugins/ 所有替換成"file/:../../eclipse-plugins/"
這樣純綠色版MyEclipse 8.6.1就打造好了,直接拷到U盤中就能夠運行了