fixed opal to work with old java