Mac Eclipse Failed to load Javahl Library.____java

Source: Internet
Author: User
Tags rsync

Turn from: http://blog.csdn.net/wy10207010219/article/details/42294293

Before writing this article I would like to express the feeling:

The things you fear, the things you want to escape, at some point in the future, you will have to face it again. The problem that I met a few months ago has not been solved, and today I finally solved it.
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
No Svnjavahl in Java.library.path



A lot of search on the internet, are used MacPorts

Download and install the macports corresponding to your system in http://www.macports.org/install.php.

After installation, the terminal executes the sudo port install subversion-javahlbindings +no_bdb +universal.

If an error occurs:

Error:port subversion-javahlbindings not found

Continue with sudo port-v selfupdate


Timeout occurred
68-245-171-115:var fanshulin$ sudo port-v selfupdate
Password:
---> Updating macports base sources using rsync
rsync:failed to connect to Rsync.macports.org:Operation timed out (60)
Rsync error:error in Socket IO (code) AT/SOURCECACHE/RSYNC/RSYNC-42/RSYNC/CLIENTSERVER.C [receiver=2.6.9]
Command failed:/usr/bin/rsync-rtzv--delete-after rsync://rsync.macports.org/release/tarballs/base.tar/opt/local/ Var/macports/sources/rsync.macports.org/release/tarballs
Exit code:10

Error:/opt/local/bin/port:port selfupdate failed:error synchronizing macports sources:command execution failed

The error resolution appears as follows:

You can perform sudo port clean, and then rerun the sudo port install subversion-javahlbindings +no_bdb +universal and

sudo port-v selfupdate. If not, then execute the following
Open official website Link: http://trac.macports.org/wiki/howto/PortTreeTarball
See the following information Configuration

Edit $prefix/etc/macports/sources.conf, comment out of the rsync entry, and add a new entry as follows:

#rsync://rsync.macports.org/release/tarballs/ports.tar [Default]
https://distfiles.macports.org/ports.tar.gz [default]
Optional Parts Test Sync

Run sync in debug mode and watch for the tarball being used instead of rsync:

port-d Sync 
is to let you open the MacPorts directory sources.conf file modify the contents, directly modified. Copy to desktop, open with text editor, slide to bottom see: Rsync://rsync.macports.org/release/tarballs/ports.tar [Default], comment out this line, replace it with the two lines above

The results are as follows://rsync://rsync.macports.org/release/tarballs/ports.tar [default]
#rsync://rsync.macports.org/release/ports/[Default]
http://www.macports.org/files/ports.tar.gz [Default]
Save after the modification, copy to the MacPorts directory, cover the original sources.conf
Re-execution: port-d sync
You'll see a whole bunch of updated information.

Next execution: sudo port install subversion-javahlbindings,[, turn off the terminal or reboot the computer and try again] the results are as follows: (to solve this problem)

Last login:wed Dec 13:42:01 on ttys000

wyappledemac-mini:~ wyapple$ sudo port install subversion-javahlbindings

Warning:/opt/local/etc/macports/sources.conf Specifies invalid source '//rsync://rsync.macports.org/release/ Tarballs/ports.tar [Default] ', ignored.

---> Computing dependencies for Subversion-javahlbindings

---> Dependencies to installed:apr apr-util db46 db_select expat libiconv sqlite3 libedit ncurses CYRUS-SASL2 Kerb Eros5 libcomerr gettext OpenSSL zlib libmagic serf1 Subversion curl-ca-bundle

---> Fetching archive for Apr

Warning:your DNS servers incorrectly claim to know the address of the nonexistent hosts. This could cause checksum mismatches for some ports. This page for more information:

---> Attempting to fetch APR-1.5.1_0.DARWIN_14.X86_64.TBZ2 from http://jog.id.packages.macports.org/macports/ Packages/apr

---> Attempting to fetch apr-1.5.1_0.darwin_14.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/ Macports/packages/apr .....

---> Installing subversion-javahlbindings @1.8.11_0

---> Activating subversion-javahlbindings @1.8.11_0

---> Cleaning subversion-javahlbindings

---> Updating database of binaries

---> Scanning binaries for linking errors

---> No broken files found.



Open eclipse in the morning suddenly died, forced to quit several times after the reboot still failed, but with the prompt

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
No Svnjavahl in Java.library.path
Java.library.path =/users/macmini/library/java/extensions:/library/java/extensions:/network/library/java/ Extensions:/system/library/java/extensions:/usr/lib/java:.


And then you find the content.

My $prefix is/opt/local, the path of my sources.conf is/opt/local/etc/macports/sources.conf (https://www.macports.org/ Install.php Official document contains instructions)



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.