方法一:在線安裝
1.打開HELP->MyEclipse Configuration
Center。切換到SoftWare標籤頁。java
2.點擊Add Site 打開對話框,在對話框Name輸入Svn,URL中輸入:http://subclipse.tigris.org/update_1.6.x
3.在左邊欄中找到Personal Site中找到SVN展開。將Core SVNKit Library和Optional JNA
Library添加(右鍵Add to Profile),Subclipse下面的Subclipse Integration for Mylyn
3.0能夠不添加(特別注意,此處不要添加)。
4.在右下角窗格(Pending Changes )中點擊Apply。安裝重啓後MyEclipse便可。
方法二:link安裝app
※▲推薦使用此種安裝方式,由於它便於插件的管理。※▲
①在eclipse根目錄下新建文件夾links,這樣就獲得了eclipse\links
②在eclipse\links下新建一個link文件(須要爲每一個插件建一個.link文件),好比svn.link,在這裏個人插件安裝目錄結構爲F:\eclipsePlugins\svn\,因此link文件名我命名爲svn.link
③在svn.link中寫入以下一句話path=F:/EclipsePlugins/svn,或者path=F:\\EclipsePlugins\\svn。
即path=你的插件安裝目錄(表明eclipse去哪一個路徑加載查件)
svn下的目錄結構爲
svn
+plugins
+fearture
④從新啓動eclipse(若是你的Eclipse安裝SVN插件以前啓動過須要先把eclipse關掉)
注意:路徑的寫法使用「/」或者「\\」而不是用「\」取代。此處容易出錯。
Important:若是發現插件沒有安裝成功,則刪除eclipse目錄下的configuration目錄中的文件夾org.eclipse.update(這是一個記錄插件更新狀況的文件夾,其中的platform.xml文件是當前使用的插件),刪除掉這個文件夾後,eclipse會從新掃描全部的插件,此時再從新啓動eclipse時可能會比剛纔稍微慢點。
安裝subclipse, MyEclipse9.0 SVN插件
一、從官網下載site-1.6.10.zip文件,網址是:subclipse.tigris.org,
二、從中解壓出features與 plugins文件夾,複製到E:\MyEclipse\myPlugin\svn裏面,其它的*.xml文件不要。
三、在 E:\MyEclipse\MyEclipse9.0\dropins下新建文件svn.link,內容是:path=E:\\MyEclipse \\myPlugin\\svn保存。
四、(嘜呆兒:這一步不肯定,先不要刪除)刪除E:\MyEclipse\MyEclipse8.5\configuration \org.eclipse.update文件夾
五、重啓myeclipse就一切正常了。[/size]
以上兩種方法都嘗試成功
方法三:直接解壓
下載SVN插件:site-1.6.10.zip
解壓後將其所有文件拷貝至:D:\Program Files\Genuitec\MyEclipse 8.5\dropins(MyEclipse的安裝目錄)
重啓MyEclipse便可出現SVN!eclipse
方法四:確定可行的方法ide
一、下載最新的SVN包:
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
二、在你的磁盤上任意位置建立文件夾:「myplugins/svn」。名字能夠任取,爲了方便插件管理,建議名稱爲「myplugins」。
三、將解壓的svn裏的兩個文件夾拷貝到「myplugins/svn」下。
四、複製下列java代碼,修改路徑並執行:
package app;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
* MyEclipse9 插件配置代碼生成器
*
*
*/
public class PluginConfigCreator
{
public PluginConfigCreator()
{
}
public void print(String path)
{
List<String> list = getFileList(path);
if (list == null)
{
return;
}
int length = list.size();
for (int i = 0; i < length; i++)
{
String result = "";
String thePath = getFormatPath(getString(list.get(i)));
File file = new File(thePath);
if (file.isDirectory())
{
String fileName = file.getName();
if (fileName.indexOf("_") < 0)
{
print(thePath);
continue;
}
String[] filenames = fileName.split("_");
String filename1 = filenames[0];
String filename2 = filenames[1];
result = filename1 + "," + filename2 + ",file:/" + path + "/"
+ fileName + "//,4,false";
System.out.println(result);
} else if (file.isFile())
{
String fileName = file.getName();
if (fileName.indexOf("_") < 0)
{
continue;
}
int last = fileName.lastIndexOf("_");// 最後一個下劃線的位置
String filename1 = fileName.substring(0, last);
String filename2 = fileName.substring(last + 1, fileName
.length() - 4);
result = filename1 + "," + filename2 + ",file:/" + path + "/"
+ fileName + ",4,false";
System.out.println(result);
}
}
}
public List<String> getFileList(String path)
{
path = getFormatPath(path);
path = path + "/";
File filePath = new File(path);
if (!filePath.isDirectory())
{
return null;
}
String[] filelist = filePath.list();
List<String> filelistFilter = new ArrayList<String>();
for (int i = 0; i < filelist.length; i++)
{
String tempfilename = getFormatPath(path + filelist[i]);
filelistFilter.add(tempfilename);
}
return filelistFilter;
}
public String getString(Object object)
{
if (object == null)
{
return "";
}
return String.valueOf(object);
}
public String getFormatPath(String path)
{
path = path.replaceAll("////", "/");
path = path.replaceAll("//", "/");
return path;
}
public static void main(String[] args)
{
/*你的插件的安裝目錄*/
String plugin = "改爲安裝目錄//Genuitec//svn";
new PluginConfigCreator().print(plugin);
}
}
這裏須要注意的是修改爲爲剛纔svn所在路徑,建議改成絕對路徑。好比d:/myplugins/svn/。。。
五、 找到「$myeclipse_home/configuration /org.eclipse.equinox.simpleconfigurator/」,打開其中的「bundles.inf」文件,爲了防止分不清是不 是咱們本身後加的東西,在最後面多回幾回車,而後粘貼第4步運行後的代碼,保存
六、重啓myeclipsesvn