September 25, 2004

IntelliJ 4.5, OS X Panther and Subversion

I recently bought an Apple Powerbook to serve as my major development laptop and also to teach me a little about BSD. Installing IntelliJ 4.5 was a doddle, but having got used to Subversion integration I wanted that too.

After a lot of trial and error, I used the follow steps to get it all working.
  1. Install Fink (http://fink.sourceforge.net/).
  2. Use Fink to download and install the latest versions of the svn-client and svn-javahl packages from the devel section. If you are working in a secure environment you may need to also pull down the SSL versions of these packages from the crypto section.
  3. Download the svnup and svn4idea45 jars from http://svnup.tigris.org/ (I used version 0.9.1 of both jars.)
  4. Create a svn4idea subdirectory below the IntelliJ plugins directory (parent directory usually called IntelliJ IDEA.app) and in the svn4idea directory create a lib directory.
  5. Place the 2 jars from tigris and the svn-javahl jar from the /sw/share/java/svn-javahl directory (if the Fink default install options were taken) and place them in the newly created lib directory.
  6. Find in the directory that contains the plugins directory find a directory called Contents and below that directory find a directory called Resource.
  7. In the Resource directory create a directory called Java (note the case).
  8. From a Terminal window, copy the libsvnjavahl.jnilib alias from the /sw/share/java/svn-javahl directory into the newly created Java directory.
  9. Restart IntelliJ and select the now available Subversion option as your version control and enter connection details for your Subversion server.

If you run into javahl library problems check that the alias has not been broken by the copy and also check that the Java directory that was created in step 7 is on IntelliJ's library path (the complete library path is listed in the error message from IntelliJ). If it is not present choose another directory from the library path for the copy destination in step 8.

Hopefully you will now have full refactoring/version control goodness.

No comments: