Simple server based on java