Java set-up