CentOS Eclipse環境配置

來源:互聯網
上載者:User

Eclipse選用jee版本:

http://mirror.bit.edu.cn/eclipse/technology/epp/downloads/release/indigo/SR2/eclipse-jee-indigo-SR2-linux-gtk-x86_64.tar.gz

 

svn安裝地址:  http://subclipse.tigris.org/update_1.8.x

maven外掛程式地址(按順序安裝):

http://m2eclipse.sonatype.org/sites/m2e

http://m2eclipse.sonatype.org/sites/m2e-extras

 

在使用Eclipse到時候,會報如下錯誤:

Failed to load JavaHL Library.

These are the errors that were encountered:

no libsvnjavahl-1 in java.library.path

no svnjavahl-1 in java.library.path

 

缺少subversion的javahl庫,安裝之:

yum install subversion-javahl.x86_64  #若不是64位的可以使用命令yum search subversion-javahl查詢具體資訊

 

查看subversion-javahl.x86_64的安裝路徑,使用命令:rpm -ql subversion-javahl顯示如下:

/usr/lib64/libsvnjavahl-1.la

/usr/lib64/libsvnjavahl-1.so

/usr/lib64/libsvnjavahl-1.so.0

/usr/lib64/libsvnjavahl-1.so.0.0.0

/usr/share/java/svn-javahl.jar

 

在Eclipse到啟動設定檔eclipse.ini檔案中添加如下變數:

-Djava.library.path=/usr/lib64/

重新啟動,該錯誤消失!

 

但是可能會出現如下錯誤:

Incompatible JavaHL library loaded. 1.7.x or later required.  安裝了javaHL仍然報版本低

開啟Eclipse喜好設定,進入team-SVN,在設定裡面的SVN介面中選擇svnkit,確定,問題解決

 

參考:http://www.blogchen.com/archives/587.html

            http://bbs.php100.com/apps.php?q=diary&a=detail&did=3266&uid=160934

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.