Building JMC with OpenJDK
marcus.hirt at oracle.com
Thu Jan 24 10:32:31 UTC 2019
Yes, as you read in the mailinglist spotbugs will be upgraded soon to solve
the spotbugs problem, see https://bugs.openjdk.java.net/browse/JMC-6358.
Alex Mcdonald has a fix ready:
--- old/./pom.xml 2019-01-23 11:49:27.934826522 -0500
+++ new/./pom.xml 2019-01-23 11:49:27.874825738 -0500
@@ -82,7 +82,7 @@
JMC should be buildable with OpenJDK 8, and yes, we’ve recently switched to
OpenJFX and therefore now require JDK 10 or above for plug-ins requiring JavaFX.
Are you pulling the source from the hg repo or the git mirror? If git, know
that it lags the mercurial repo.
From: "Langer, Christoph" <christoph.langer at sap.com>
Date: Thursday, 24 January 2019 at 11:10
To: Marcus Hirt <marcus.hirt at oracle.com>, "jmc-dev at openjdk.java.net" <jmc-dev at openjdk.java.net>
Subject: Building JMC with OpenJDK
I’m currently doing my first steps with JMC development.
So, I was following your blog  to build it. Thanks for this great piece of information! In general, it worked for me.
However, there was one thing where I had to do some guessing. You mention, one needs Java 8. But, as of the build, you’d probably need to be more concrete and mention that one needs an Oracle JDK 8. Because, if you do the build with OpenJDK, you get errors:
org.openjdk.jmc.javafx.osgi ........................ FAILURE
It seems that there are some dependencies to javafx, that only the Oracle JDK can satisfy:
[ERROR] import javafx.application.Platform;
I also had to use the option -Dspotbugs.skip=true, but I guess this is because of . I’m going to verify this.
So, as for the JDK to use: Are there plans to get rid of the dependency to javafx from the JDK? E.g. use OpenJFX?
Thanks and best regards,
More information about the jmc-dev