Lot of companies in the world use Java including the company I work for. AFAIK there is no licensing deal and we use most of the Java packages for which Oracle sued Google. So can Oracle sue any company which is using Java and making profit? If not, then why only Google is being targeted?
So can Oracle sue any company which is using Java and making profit?
Yes. In fact, it is not necessary for them to be making a profit, just that there is not a fair use defence.
why only Google is being targeted?
You sue people with money, preferably lots of money. There is no reason to sue someone if they are unable to pay the judgement.
In the javadoc api license there is the following clause:
- License for Evaluation Purposes. Oracle hereby grants you a fully-paid, non-exclusive, non-transferable, worldwide, limited license (without the right to sublicense), under Oracle's applicable intellectual property rights to view, download, use and reproduce the Specification only for the purpose of internal evaluation. This includes (i) developing applications intended to run on an implementation of the Specification, provided that such applications do not themselves implement any portion(s) of the Specification, and (ii) discussing the Specification with any third party; and (iii) excerpting brief portions of the Specification in oral or written communications which discuss the Specification provided that such excerpts do not in the aggregate constitute a significant portion of the Specification.
Clause 2 has language that requires distributed implementations to be fully compliant to the docs (and require passing the Technology Compatibility Kit).
This means that Google is not allowed to re-implement just parts of the java standard library described in the javadoc. Which they did for android.