Thursday, April 08, 2010

Getting Java 5 to run again on my mac


For almost a year now I have been a developer on the opencsv project. Opencsv is a Java library for parsing comma separated value files. Its a cool project to work on and really handy to work on my spare weekends when I am on a iteration at work that is heavy in design or meetings and light on coding (when I start having coding withdrawals).

A couple of months ago I sent Glen an email stating that we had enough patches in for a new version to be created and he replied back with an incredible offer - would I like to become a maintainer on the project! I was excited to be trusted to maintain the project and readily agreed. But that excitement quickly became disappointment when I realized I had a major roadblock on my hands. One that could keep me from building opencsv altogether.

I have a Mac.

Not that the macintosh is a bad machine to develop on. Quite the contrary - I had been developing java apps for quite some time. So its really not the Mac's fault. The problem goes much deeper.

Apple hates Java.

There. I said it. For some reason Apple has never been too thrilled with Java and with Snow Leopard they went so far as removing all versions of Java EXCEPT for Java 6. All prior versions of Java were removed and replaced with links to Java 6.

Now this is not as bad as it sounds. Everything I have runs just fine in Java 6. The problem though is that by only having Java 6 I could not do a full deployment build of opencsv. This is because opencsv has a requireJavaVersion maven rule to only allow Java 5 when doing a maven install. The reason for this is that Java 5 is currently one of the most used versions of Java out there and while we switched from Java 1.4 to Java 5 for version 2 of opencsv there was no compelling reason to go all the way up to Java 6 and leave the larger populace out in the dark (though ask me again when Java 7 comes out ).

So here I am maintainer of a project that I could not build. So I set myself a task to deploy opencsv! Now bear in mind I did say I did this on my spare weekends and unfortunately between work (which was speeding up this year) and family (I am den leader of my son's cub scout den) those have been few and far between.

But I finally got my first break tonight. After many consultations with the great oracle Google I found several articles that made it possible to reinstall Java 5 and allow me to do a maven install on opencsv for the first time since the Java version was enforced.

First I found this article that showed me how to re-install Java 5 on my system. It was very well written and probably the first article I came across in a long time that worked following the instructions verbatim.

Then using this article I changed the version that Java defaults to. Then I found this article which showed me how to change my JAVA_HOME so its set to the selected version. This way maven uses the correct version and I can build finally!!!!!

Now on to deployment .

Friday, February 19, 2010

30 useful webapps you need to bookmark


Found this on digg.com. Looked through the first page of links and several of them looked very interesting (ie ConvertCentral).

http://www.maximumpc.com/article/features/30_incredible_web_apps_you_need_try

Friday, August 28, 2009

How stuff works - hybrid cars


I found an awesome article about hybrid cars on digg.com yesterday. Check it out!

I have always been a fan of the Prius but I like the thought of a series hybrid because it would only be one step away from replacing the gas engine with another from of power generation (i.e. extra batteries, hydrogen fuel cell, etc.)

Tuesday, June 02, 2009

25 best programmer webcomic strips

The name says it all

My favorite is #1.

http://slashweb.org/programming/25-best-programmer-webcomic-strips.html

Thursday, March 26, 2009

25 free mac apps

this is a good article I found on digg with some useful apps for the Mac.  I use NeoOffice but I did not have Caffiene or Transmission (the last I use bitTyrant but Transmission is highly recommended by co workers so I wanted to give it a try).

http://www.designer-daily.com/mac-apps-1915

Wednesday, March 25, 2009

10 rare html tags

Other than my website (which I rarely update) I do not use HTML too much but this article had some neat stuff about HTML.

http://net.tutsplus.com/articles/web-roundups/10-rare-html-tags-you-really-should-know/

Thursday, March 05, 2009

The LEDs are here at last

Last week when I was at Home Depot I saw for the first time LED lightbulbs!!!! While they only had the two prong GR-10 type lightbulbs but that is what Nate has in his room. So I got a couple of them (at $14 each I was not getting a dozen) and replaced the burned out bulbs in Nates room (we always lose a bulb or two in each electrical storm).

Then this week when I was at Sams I saw they had LED bulbs to replace standard 40 watt bulbs! Better yet they were $14 for a three pack!!!! The only reasons I did not stock up on them was they were not dimmable, I am waiting for the 60 watt replacement (though there are a couple of places where I could use a 40 watt) and I still have a whole bunch of CFLs I need to go through first.

But they are finally here!!!!

:)