made java::install more robust