Mac under Eclipse install SVN plugin

Source: Internet
Author: User
Tags install homebrew svn tar xz

The most commonly used SVN plugin in Eclipse is Subclipse, first to Subclipse: to download the plugin.
For example, click "Download and Install" to go to the download page. Select the version that you want to install, such as I choose here: Links for 1.8.x release: Next, there are two ways to install Subclipse, two options. One, 1, copy Eclipse Update site URL: Behind the link:, open Eclipse, click Help-install New Software , open the window: 3, click the Add button.  4. Enter the plug-in name in the Name column: Subclipse;location Enter the link you just copied in the column: 5, click OK. 6, such as, select Subclipse, and remove the bottom contact all update site ... option in front of the tick, and then all the way next, until the online installation is complete, if prompted in the middle of the box, select OK. Installation completion will require you to restart eclipse. Second, 1, click Zipped Downloads the link behind, the plug-in download to the local.  2, ibid. 23, ibid. 34, enter in the Name column: Subclipse, click the Archive button, select the plugin package just downloaded. 5, ibid. 56, ibid. 6 After restarting Eclipse, select Window-show view-other to expand SVN, double-click to open the SVN repository view right click in the blank, select New-Repository location Enter the SVN access address in the URL column, then finish, The error will be indicated at this time: Failed to load Javahl Library.
These is the errors that were encountered:
No libsvnjavahl-1 in Java.library.path
No svnjavahl-1 in Java.library.path
No Svnjavahl in Java.library.pathjava.library.path =.:/ library/java/extensions:/system/library/java/extensions:/usr/lib/java  Description The system is missing Javahl, we need to install it manually.   Click Eclipse-preferences, expand team-svn   It can also be seen that the client below the SVN interface shows: Javahl (JNI) not Available means that Javahl is not available. Of course you can also click on the right up and down arrows to select Svnkit ... As a client, this can also normal use subclipse, but the official recommended to use Javahl as the client, stability, speed is much better than Svnkit, using Svnkit may have an unknown error, so that your project data damage. (Javahl is a jni way to invoke the local SVN library, so fast and reliable)     view Javahl wiki Documentation: Javahl is mentioned in OS X below: To install Javahl you need to use macports or homebrew. (Description: MacPorts and homebrew are package managers in Mac OS X, similar to Apt-get in Ubuntu and Yum in Red Hat for installing, uninstalling, updating software, etc.)    Next we use MacPorts to install Javahl, go to macports download page:   in a paragraph of the description, to install and run MacPorts , you must install Xcode and command line Tools, then go to the Mac App store to download and install Xcode, free, 1.65 g. After Xcode is installed, open, click xcode-preferences, switch to Downloads view, click the Install button below command line tools. After the installation of   xcode and command line tools is complete, go back to the MacPorts download page and click on the underlined version of the system to download. My system version is Mountain Lion, so click on "Mountain Lion" to download it.    download, directly click on the installation, the installation process may be very slow, then I thought the installation is not going to restart the computer, who knew the sudden prompt said installation is complete. If your installation process is not moving, it is recommended to restart the computer several times. After the  macports is loaded, open the terminal and follow the Javahl wiki document description, enter: sudo port install subversion-javahlbindings +no_bdb +universal Enter, Finally an error occurred and the installation failed! I've tried it a couple of times. Look online Many people have appeared macports installation Javahl unsuccessful situation, someone said with homebrew can be successful, so I switched to homebrew to install Javahl.   Because MacPorts and homebrew are not compatible, we first uninstall the MacPorts. Input in terminal: sudo port-f uninstall Installedsudo rm-rf \/opt/local \/applications/darwinports \/applications/macports \ library/launchdaemons/org.macports.* \/library/receipts/darwinports*.pkg \/library/receipts/macports*.pkg \ Library/startupitems/darwinportsstartup \/library/tcl/darwinports1.0 \/library/tcl/macports1.0 \~/.macports  MacPorts Uninstall is complete, and then open Homebrew's home page:  Drag the page to the bottom, see:   White Line of command is used to install homebrew, You can see that it's a ruby command that shows that homebrew is implemented with Ruby.   because Mac OS X already has Ruby installed by default, we can execute this command directly. You can check the version of Ruby at Terminal input: ruby-v.   in terminal input: Ruby-e "$ (curl-fssl "Enter, then start the online installation of homebrew, installation time may be longer, depending on the network conditions." Homebrew default is installed under Usr/local, bin is its home directory, and the bin directory path has been added to path, in any directory can directly execute the brew command. Packages that are installed through brew are stored in the Cellar directory under Use/local.   Of course, in order to make the directory structure clearer, we can create the homebrew directory under/usr/local, and then install homebrew under/usr/local/homebrew, the specific Operation command is, terminal input: mkdir homebrew && curl-l| After the installation of the tar XZ--strip 1-c Homebrew is complete, you need to update the next homebrew, terminal input: Brew update and then manually add/usr/local/homebrew/bin to path. After successful installation of  home Brew, the installation of Javahl, Terminal input: Brew install--universal--java Subversion, which can be found in the Javahl wiki, will start the installation of Javahl, and after the installation is complete, it prompts you: "may need to link the Java bindings ... Then execute the two sudo commands below: Terminal input: sudo mkdir-p/library/java/extensionssudo ln-s/usr/local/homebrew/lib/libsvnjavahl-1.dylib/ Library/java/extensions/libsvnjavahl-1.dylib is ready! The last row shows the version of Javahl. For example, mine is the following: The version number is:1.8.0   this time, we opened Eclipse, the establishment of the repository when an error occurred:  incompatible Javahl library loaded. Subversion 1.7.x required.  This error is that the mismatched Javahl version is loaded, the required version is 1.7.x  above mentioned I installed Javahl version is 1.8.0, open JavaThe table in the HL Wiki document:   identifies the Subclipse and Javahl versions.   The Subclipse version installed in my eclipse is 1.8.22, the corresponding Javahl version should be 1.7.x, so the version mismatch will be prompted.   For convenience, we unload the subclipse1.8.22 and replace it with 1.10.x, so it matches.   Uninstall Subclipse step: Open Eclipse, click Eclipse-about eclipse   Click the Installation Details button, select the option related to Subclipse, Then click on the Uninstall button to uninstall.    uninstall complete, then follow the above steps to re-download the installation of Subclipse 1.10.1, and then restart Eclipse, you will be able to establish the repository location.

Install SVN plugin on Mac under Eclipse

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: 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.