How to check if JavaSE Commercial Features are enabled?

泄露秘密 提交于 2021-02-08 03:39:01

问题


In light of the recent apparent crackdown of Oracle on Java users (read here), I'm wary about my continued use of Oracle's JDK - or anything Oracle for that matter. The above article warns:

“If you download Java, you get everything – and you need to make sure you are installing only the components you are entitled to and you need to remove the bits you aren’t using,” our anonymous expert warned.

I'm only using the OracleJDK for personal use, on my personal laptop. I haven't given the code to anyone. Period.

Is there a simple way to check if I have any of the commercial features enabled? I use IntelliJ IDEA CE. I don't want to accidently activate them so I'm seeking your help. Thank you.


回答1:


So oracle's java BCLA states the following.

This means that you can pretty much do what ever you want with the software as long as you are the one using it and you arn't violating any of the later clauses such as reverse engineering / decompiling to provided software.

Now who does pay Oracle for the JDK? Well let's look at the highlighted section. Oracle grants you a non-exclusive, non-transferable, limited license without license fees to reproduce and use internally the Software complete and unmodified for the sole purpose of running Programs. The first part non-exclusive this means that you are not the only person granted the license. Non-transferable this means that you may not give your license to another person. limited license this means Oracle can take your license away and that you are not unlimited with your relation to the intellectual property. without fees Free! to reproduce and use internally the Software complete and unmodified for the sole purpose of running Programs. This means that you can use the jdk your self to run your java code. So if you were say a school that charged tuition and used the jdk as part of the curriculum you would owe royalties consequence of providing the jdk to external consumer (the student) as part of a package delivered for a fee.

Now it's the next part that has you worried. THE LICENSE SET FORTH IN THIS SECTION 2 DOES NOT EXTEND TO THE COMMERCIAL FEATURES. Digging deeper for a description of the commercial features we find this page. which includes the following portion that would have anyone a little worried.

While this may seem alarming you would have had that talk with oracle when you were downloading Java SE advanced or Java SE suit. Earlier in the page under [vanilla] Java SE it says 'Java SE can be used for free internally to run applications and may be redistributed in accordance with the Oracle Binary Code License Agreement for the Java SE Platform Products (the “Java BCLA”)'

To address your initial question as to weather the commercial features are enabled or not you can look at the vm options that you are using at run-time, as this is where the commercial addon's are enabled.

Do not modify the software Oracle distributes to you as the license provided to you is for use of the software 'complete and unmodified'.



来源:https://stackoverflow.com/questions/41614399/how-to-check-if-javase-commercial-features-are-enabled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!