ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I learned Java(SE,EE) few years ago and didn't use it because we are using PHP and ASP.NET at work.However, I would like to ask a question: Is Java (SE,EE) free for use for business purpose?I mean,if I start up a company and use tomcat with java, do I have to pay for the license to use Java?
I don't know much about java license until I learned that ASF(Apache Software Foundation) quited from the Java Community recently.As a result,they recalled my attention regarding the legitimacy of using java in business purpose for free.
Thanks for answering my dumb question!
Last edited by Swift&Smart; 12-28-2010 at 08:26 AM.
On November 13, 2006, Sun released much of Java as open source software under the terms of the GNU General Public License (GPL). On May 8, 2007, Sun finished the process, making all of Java's core code available under free software/open-source distribution terms, aside from a small portion of code to which Sun did not hold the copyright.[17]
I was intrigued by the changes you mentioned so had a look at Oracle's latest Java SE license pages.
IMHO and 'I am not a lawyer': I would check out the 'Java SE for business' offering which has appeared on their site.
Personally I would factor the cost of this paid offering into your SWOT/risk analysis when considering a new Java project - just sound business practice.
I didn't see a direct answer to your question, so:
1. No, there are no restrictions on any program you write in Java.
2. Yes, the Java runtime ("JRE") is freely available to anybody who wishes to use your program.
Additionally, you may distribute the JRE together with your program:
There is also a Java implementation coming with GCC, and several years ago it received some important certifications making it a kosher Java - if I understood it correctly. I vaguely remember the details - probably it was related to Java class library.
I am not a Java guy, I think more answers can be found on RedHat site.
...
Also, there is an IBM Java.
I'm a huge fan of Gnu ... but, unfortunately, I cannot recommend Gnu Java. The whole point of Java is supposed to be "compatibility" ... and GJC isn't.
OpenJava is a good alternative, but I strongly recommend Sun Java if at all possible.
Oh yes, IBM's "Blackdown" version of Java is required if you're on an IBM platform (such as AIX).
I'm a huge fan of Gnu ... but, unfortunately, I cannot recommend Gnu Java. The whole point of Java is supposed to be "compatibility" ... and GJC isn't.
OpenJava is a good alternative, but I strongly recommend Sun Java if at all possible.
Oh yes, IBM's "Blackdown" version of Java is required if you're on an IBM platform (such as AIX).
'Hope that helps!
Again, my point is that for a Java stack to be considered kosher it should undergo certain certification process. And I know that for many years GNU Java wasn't certified, but then it passed final needed certifications (IIRC).
But, AFAIR, unlike with "C", there is no ANSI Java standard, so that's probably the root cause of incompatibilities, i.e. Sun's Java is considered to be kosher by definition. And even this is self-contradictory - IIRC, transition from Java 1.5 to 1.6 wasn't that smooth.
Java
OpenJDK 6 is an open source implementation of the Java Platform Standard Edition (SE) 6 specification. It is TCK-certified based on the IcedTea project, and the implementation of a Java Web Browser plugin and Java web start removes the need for proprietary plugins.
IcedTea is a software development and integration project launched by Red Hat in June 2007.[1] The initial goal was to make the Java OpenJDK software which Sun Microsystems released as free software in 2007 usable without requiring any other software that is not free software and hence make it possible to add OpenJDK to Fedora and other Linux distributions that insist on free software. This was met and a version of IcedTea based on OpenJDK was packaged with Fedora 8 in November 2007.
April 2008 saw the first release[2] of a new variant, IcedTea6 which is based on Sun's build drops of OpenJDK6, a fork of the OpenJDK with the goal of being compatible with the existing JDK6. This was released in Ubuntu and Fedora in May 2008. The IcedTea package in these distributions has been renamed to OpenJDK using the OpenJDK trademark notice. In June 2008, the Fedora build passed Sun's rigorous TCK testing[3] on x86 and x86-64.
Last edited by Sergei Steshenko; 12-28-2010 at 06:59 PM.
On November 13, 2006, Sun released much of Java as open source software under the terms of the GNU General Public License (GPL). On May 8, 2007, Sun finished the process, making all of Java's core code available under free software/open-source distribution terms, aside from a small portion of code to which Sun did not hold the copyright.[17] http://en.wikipedia.org/wiki/Java_pr...nguage#History
So,smoker,is that mean Java is free for use in business sector also?It seems to me that I cannot find a consensus answer here.I think that I'm not the only one who worries about the license problem here. If,we cannot use java for free in business,it just turns my world upside down.There aren't much choices left.
"Java" is a language you write programs in. It also entails a "runtime" (the JRE) you need in order for your program to execute on any given platform. There are technical issues (like source- and binary compatibility), and legal issues (namely, the license).
As I said above (citing the actual licenses from the Sun Java web site), if you write your programs using the SunJava or OpenJava compilers, and rely on the SunJava or OpenJava JREs, you're home free. No worries. You are licensed to use the compiler as you wish; you're licensed to redistribute the JRE for your compiled bytecode as you wish.
IcedTea is a separate issue: you, as a developer, or as an ISV, aren't directly affected one way or the other.
GPL'ing Java source matters very much to the IcedTea folks. But it necessarily doesn't matter to you, unless you want to modify the compiler (or build your own compiler).
It also matters to those who are worried about the long term future of the Java standard (which Sun had managed themselves, much as ANSI manages the C and C++ standards).
But again: if you (as a developer or an ISV) use Sun Java (just about anywhere) or OpenJava (e.g. on Linux), you're safe.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.