Change install method, install only necessary java file for runtime (reduce image size)