An Ant Task to Maintain Eclipse Classpaths with Ivy Resolve Results

Friday, February 13th, 2009

I put together an Ant task(download) that can use the result of the ivy:resolve task to maintain Eclipse’s .classpath file. If your ivy:resolve also generates references to the source jars, this task will also attach them to the corresponding classpath entries in the .classpath file. more…

Eclipse, Mac OS X, JDK 1.6

Wednesday, January 21st, 2009

Question: how do you not want to start an unseasonably cold Northern Virginia winter morning?
Answer: have some chill down the spine when you fire up Eclipse on your Mac Book Pro Toy(tm), only to get hit by this mysterious error message:

_NSJVMLoadLibrary: NSAddLibrary failed for /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries/libjvm.dylib
JavaVM FATAL: Failed to load the jvm library.

As the initial “oh crap now we don’t have Bush to blame it on” panic settles in, you realize since the last time Eclipse ran fine, you did go in there and tinkered with that “CurrentJDK” stuff, so that JDK 1.6 instead of 1.5 would be the default.

So you start googling frantically and find, through the first link returned, this neat solution by rkischuk. The only difference is that the file you have to edit is located at:

${ECLIPSE_HOME}/Eclipse.app/Contents/Info.plist

Hmm…, and when Steve Jobs said “Java’s not worth building in,” you thought he was only talking about the iPhone.

Eclipse + Vim = Eclim

Wednesday, October 22nd, 2008

I tried Eclim some time last year. I thought the idea of tackling the eclipse/vim-integration situation from a completely different angle was very clever, but the implementation wasn’t quite there. I couldn’t even get through the installation. more…

How To Upgrade The Freemarker Jar Bundled In JBoss Freemarker IDE

Saturday, August 30th, 2008

The current version (1.0.0.GA) of Freemarker IDE from JBoss Tools comes with freemarker-2.3.8.jar bundled. To update to freemarker 2.3.13:

  1. Copy freemarker-2.3.13.jar into $ECLIPSE_INSTALLATION/plugins/org.jboss.ide.eclipse.freemarker_1.0.0.GA, and remove the freemarker-2.3.8.jar in there.
  2. Edit META-INF/MANIFEST.MF to replace the reference to “freemarker-2.3.8.jar” with “freemarker-2.3.13.jar”.
  3. Restart Eclipse with the “-clean” command line option. This is important because otherwise the Eclipse OSGI engine will keep using cached bundle data which is stale now.