Issue #134 Remove /var/lib/alternatives/#{cmd} before calling alternatives.
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

gsaslis/java,LateRoomsGroup/java,GannettDigital/chef-java,udayas81/JAVA,mrb/java,gsaslis/java,bgandon/java,foreflight/java,cellux/java,nshemonsky/chef-java,juliandunn/java,foreflight/java,gsaslis/java,bitmonk/chef-java,cposture/java,cposture/java,GannettDigital/chef-java,nshemonsky/chef-java,bitmonk/chef-java,juliandunn/java,RobertNorthard/java,foreflight/java,GannettDigital/chef-java,dcode/java,mrb/java,dcode/java,bgandon/java,cellux/java,udayas81/JAVA,bgandon/java,cposture/java,mrb/java,nshemonsky/chef-java,cellux/java,dcode/java,RobertNorthard/java,RobertNorthard/java,bitmonk/chef-java,juliandunn/java,LateRoomsGroup/java,LateRoomsGroup/java