Update server, add Java code