run the update-java-alternatives block immediately so the installed java can be used by other recipes
run the update-java-alternatives block immediately so the installed java can be used by other recipes

Without :immediately, the chef run crashes later when a subsequent recipe expects a default java to be configured. So the update-java-alternatives block was never being run.

LuisGons/cookbook-for-java,LuisGons/cookbook-for-java