Updated java to fix no var declared