Setting up JavaHL (JNI) support in Eclipse on Linux
6 Comments Published June 19th, 2008 in Java Tags: .The error:
Selecting from Eclipse, Preferences>Team>SVN and select SVN interface: JavaHL(JNI) on Linux you get:
Failed to load JavaHL Library. These are errors that were encountered: no libsvnjavahl-1 in java.library.path no svnjavahl-1 in java.library.path no svnjavahl in java.library.path java.library.path = /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i368/client::/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386::/usr/lib/xulrunner-addons:/usr/lib/xulrunner/addons:/usr/java/packages/lib/i386:/lib:/usr/lib
The solution:
install Java bindings for Subversion libraries:
$ sudo apt-get install libsvn-java
This will install required JNI libraries on /usr/lib/jni.
Then, add this path to LD_LIBRARY_PATH environment variable before starting Eclipse. For convenience, you can do that creating a shell script like the following:
$ vi ~/bin/eclipse #! /bin/sh export LD_LIBRARY_PATH=/usr/lib/jni /opt/eclipse/eclipse
Then make it executable:
$ chmod +x ~/bin/eclipse
To run eclipse then, just launch ~/bin/eclipse and enjoy native Subversion binding.
6 Responses to “Setting up JavaHL (JNI) support in Eclipse on Linux”
- 1 Pingback on Aug 25th, 2011 at 12:08
Leave a Reply
Search
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « May | Jul » | |||||
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | ||||||
Follow me
Archives
Categories
- Android (3)
- Apple (29)
- Books (7)
- Eclipse (14)
- Errors (5)
- Firefox (7)
- Git (3)
- Hardware (18)
- Horror Code (8)
- Internet (21)
- Java (104)
- JavaScript (9)
- Life, universe and everything (45)
- Lifehacks (26)
- Linux (52)
- Opinions (26)
- OSX (11)
- OWNER API (2)
- Python (1)
- Software (33)
- Speeches and Conferences (8)
- Unix (5)
- Web (23)
- Windows (19)
Tag Cloud
Android apple architecture Bash configuration CSS Development Düsseldorf Eclipse Git Google Hardware hdr How-To howto Java JAXB job Karmic Linux lion MacBook music Open Source Opinion OSX os x patterns Pitfalls Practices Resume Security Software Suspend TDD Testing tip tonemapped Tricks Ubuntu unix video Web Workaround XML
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Blog License
Blogs I like
Books on the desk
Friends' Blogs
- Antonio Terreno & Valter Bernardini
- Bruno Bossola
- Daniele Galluccio
- Domenico Ventura
- Ed Schepis
- Fabrizio Gianneschi
- Luca Grulla
- Luigi Zanderighi
- Marcello Teodori
- Mida Boghetich
- Muralidharan Chandrasekaran
- Piero Ricca
- Renzo Borgatti
- Simone Bordet
- Simone Bruno
- Uberto Barbini
- Valvolog
- Webtide blogs (Greg Wilkins & Jan Bartel)
Links


















Thanks! This helped a lot.
If you don’t want to make a special shell script to launch Eclipse, you can also add a file /etc/ld.so.conf.d/jni.conf with the line /usr/lib/jni (follow /etc/ld.so.conf.d/libc.conf for guidance). Run sudo ldconfig once so that the changes are picked up, then start Eclipse the way you usually do. (This is on Ubuntu 9.10.)
I am embedding svn into a web application using javahl…..i have libsvn-java installed,svn version 1.5.4,sun-java-6 on ubuntu jaunty jackalope(9.0.4)…i keep getting the following exception
“java.lang.UnsatisfiedLinkError: no svnjavahl-1 in java.library.path”………Does anyone know how to sort this issue?
Thank you very much Luigi programmer!!!!!!!!!!!
I had been trying to solve this problem for too many time, on my java superior school computer till today.
Two months ago I finish deleting eclipse netbeans and jbuilder on ubuntu just for the problem,
GRACIAS THANKS
:D
Hey Dude! that work like a charm! Thanks!