| 80 | == 3.3 排除 javaHL 錯誤的問題 == |
| 81 | |
| 82 | * 有時候eclipse會報錯,訊息如: |
| 83 | {{{ |
| 84 | #!text |
| 85 | Failed to load JavaHL Library. |
| 86 | These are the errors that were encountered: |
| 87 | no libsvnjavahl-1 in java.library.path |
| 88 | no svnjavahl-1 in java.library.path |
| 89 | /opt/local/lib/libsvnjavahl-1.0.0.0.dylib: no suitable image found. Did find: /opt/local/lib/libsvnjavahl-1.0.0.0.dylib: mach-o, but wrong architecture |
| 90 | }}} |
| 91 | |
| 92 | 解決方法:([http://subclipse.tigris.org/wiki/JavaHL]) |
| 93 | |
| 94 | 1. 安裝 libsvn-java |
| 95 | {{{ |
| 96 | $ apt-get install libsvn-java |
| 97 | }}} |
| 98 | |
| 99 | 2. 增加 eclipse目錄/eclipse.ini |
| 100 | {{{ |
| 101 | -Djava.library.path=/usr/lib/jni |
| 102 | }}} |
| 103 | |
| 104 | 3. 重新啟動 eclipse 就不會出現錯誤訊息了 |
| 105 | |