Fixed Java runtime issue