update java-demo and web-demo