Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have an application in Java. Now we want to export this application to clients (free of charge). Can we ship JRE7 along the application (precaution as client might not have Java installed). Is it legal to do this?

share|improve this question
up vote 12 down vote accepted

This is addressed at official page at - Licensing and Distribution FAQs:

Can I distribute Java with my software?

Yes, you can provide Java with your software provided you abide by the terms and conditions of Java binary code license.

Can I distribute Java Development Kit (JDK) along with Java Runtime Environment (JRE) on the same CD-Rom?

Yes, provided that you abide by the terms and conditions of the JDK's binary code license.

Can we provide Java on a CD to ensure that people who do not have internet can install it directly from the CD?

You may make Java available to users within your organization on a CD. And you may distribute Java bundled with your application to users outside of your organization. You may not distribute Java alone on a CD.

share|improve this answer
Or you can ship OpenJDK and comply to the GPL. – ysdx Aug 23 '12 at 9:46
1 I think not... – Michael Borgwardt Aug 23 '12 at 10:30
Except for getting the Java Compiler, would there be any reason to use a JDK instead of a JRE for an end user? – user1249 Aug 23 '12 at 10:45
@MichaelBorgwardt thanks for catching! site corrected to – gnat Aug 23 '12 at 11:19
@ThorbjørnRavnAndersen In our case, we only need the jre. – Jatin Aug 24 '12 at 7:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.