Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Closed Source Java Applications

Tags:

java

I am taking programming courses and we have been discussing Open Source and having a bit of an argument over the confusion. Just because Java is Open Source, the licensing on developed applications starts at the developer, correct? Someone is arguing about the use of code from a complete program just because "Java is Open Source". If I write a Java application, what are the limitations on how I can distribute it or how someone else can use it? Assume here that I DO NOT want someone having access to my source.

Thanks

like image 204
Paul Avatar asked Dec 22 '22 02:12

Paul


2 Answers

OpenJDK uses the GPLv2 with classpath exception.

If you modify the JDK itself and distribute binary versions, you must provide its modified source and distribute it under the same terms, but this does not apply to Java applications you write yourself. You are free to distribute them under whatever terms you wish.

I am not a lawyer, though. You might want to check with one.

See also http://www.sun.com/software/opensource/java/faq.jsp#g

like image 50
Artefacto Avatar answered Jan 03 '23 04:01

Artefacto


No, the programming language itself is completely unrelated to the licensing of the programs. A normal Java program does not bundle with the standard runtime, only the compiled class files, which are written by the programmer(s). You don't need to credit Microsoft Word if you published a .doc Word document.

like image 30
Ming-Tang Avatar answered Jan 03 '23 03:01

Ming-Tang