在Mac下升级了subversion 1.8与eclipse svn插件1.10.x导致eclipse svn不能正常工作

之前手痒升级了Mac系统下的subersion 命令工具版本(由1.7.x升级1.8.x),原本eclise用的svn插件只是支持subersion 1.7.x的,只要不用命令行执行"svn upgrade",eclipse下是没啥问题的,但执行完之后eclipse下就有问题了,必须升级eclipse svn插件。


好吧,升级就升级,用这个版本升级了svn插件: http://subclipse.tigris.org/update_1.10.x 。


问题出现了,eclipse报了这个错 :Native library version must be at least 1.8.0, but is only 1.7.6 ,在eclipse的偏好设置里怎么也设置不到(设置界面异常出不来),找了很久也试了很多方法,结果在http://stackoverflow.com/questions/9303293/subclipse-and-javahl-installation-headache这里找到了解决方案,引了那哥们回答原文:

Add subversion to java default library path - Now it gets a little tricky. Open the eclipse.ini file (for instructions to find the eclipse.ini file, read this: http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Mac_OS_X_Example - note that it is not the same as the config.ini file in the eclipse folders). After opening the eclipse.ini file, copy and paste -Djava.library.path=/opt/subversion to the end of it. Save and close.


只看这句,在eclipse.ini最后加一行启动参数:-Djava.library.path=/opt/subversion (正好我subversion也安装在这个目录下),重启eclipse,在eclipse的偏好设置里就可以设置svn client了。

顺便提下eclipse.ini在哪里,在eclipse解压目录下有两个eclipse文件,选中有图标的那个eclipse文件显示包内容,eclipse.ini在路径/Contents/MacOS/下。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值