1

Our software previously shipped with the OpenJDK JRE, but now we are going to ship the Oracle JRE.

Previously we compiled with the OpenJDK javac compiler. I assume now we should use the Oracle javac compiler as it is more likely to generate problem free code when run with the Oracle JRE. Is this correct?

If so how can the javac vendor be verified? I would want the makefile to error out if using the wrong compiler (our old software version would use the OpenJDK compiler, while the new version would use Oracle compiler).

1
  • Any Java compiler should work with any Java runtime. Commented Apr 26, 2016 at 19:13

1 Answer 1

5

but now we are going to ship the Oracle JRE.

I suspect you can't do this legally.

I assume now we should use the Oracle javac compiler as it is more likely to generate problem free code when run with the Oracle JRE. Is this correct?

The javac uses the same source code as OpenJDK and it should produce the same or compatible byte code even if it doesn't.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.