socrata-cookbooks/java — pull request #144 by rteabeault (2014-03-07 23:16:30+00:00)
Title: Issue #134 Remove /var/lib/alternatives/#{cmd} before calling alternatives.

This seems to fix the problem that we are seeing where jar does not get properly linked.
What we were seeing is the same as described here

http://johnglotzer.blogspot.com/2012/09/alternatives-install-gets-stuck-failed.html