Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing commercial components for Oracle Java SE

Tags:

java

According to this news - Oracle finally targets Java non-payers – six years after plucking Sun.
Some components of Oracle Java SE require extra license for commercial usage. Here is key features of Oracle Java SE Advanced & Suite Products :

  • Java Mission Control (JMC) - It's shiped with JDK
  • Java Flight Recorder (JFR) - It's shiped with JRE
  • Java Advanced Management Console (AMC) - It's EAR and required extra installation.
  • Microsoft Windows Installer (MSI) Enterprise JRE Installer
  • Java Usage Tracker (JUT) - According to the overview, it's shiped with JRE

I want to remove these commercial components to prevent possible license issue. This is what I do so far.
For JMC, I remove $JDK_HOME/lib/missioncontrol/* and execute $JDK_HOME/bin/jmc.exe. A dialog box popuped with this message:

The Jmc executable launcher was unable to locate its companion shared library.

I also remove $JDK_HOME/bin/jmc.exe and $JDK_HOME/bin/jmc.ini.

For JFR, I remove $JRE_HOME/bin/jfr.dll, $JRE_HOME/lib/jfr.jar, $JRE_HOME/lib/jfr/* and execute java -XX:+UnlockCommercialFeatures -XX:+FlightRecorder pkg.MyTest for verification. JVM is not started, it prints following message:

Error occurred during initialization of VM
Failed to start tracing backend.

My questions are:

  1. How to remove Java Usage Tracker (JUT)? I have no idea where the component is.
  2. Is there any other file should be removed for JMC and JFR?
  3. For Oracle Java SE, is there any other component or file should be removed?
like image 985
Beck Yang Avatar asked Dec 23 '16 12:12

Beck Yang


People also ask

What was removed in Java 11?

In JDK 11, the Java EE and CORBA modules were removed. These modules were deprecated for removal in JDK 9. The removed modules are: java.xml.ws: Java API for XML Web Services (JAX-WS), Web Services Metadata for the Java Platform, and SOAP with Attachments for Java (SAAJ)

What is the difference between JDK 8 and JDK 11?

There are several reasons why one should upgrade from Java 8 to Java 11. Applications written in Java 9, 10, and 11 are significantly faster and more secure than previous versions of the language. ZGC and Epsilon garbage collectors have improved Garbage Collection.

What is Oracle Java SE used for?

Java Platform, Standard Edition (Java SE) lets you develop and deploy Java applications on desktops and servers. Java offers the rich user interface, performance, versatility, portability, and security that today's applications require.


1 Answers

You don't need to remove these components. As long as you don't explicitly enable them you're totally fine.

See the Java Champions clarification to that Register article.

like image 151
Martijn Verburg Avatar answered Nov 09 '22 22:11

Martijn Verburg