BCS Mint And Java FX


The OpenJDK series is not suitable for development of JavaFX applications. The OpenJDK does not possess the run time environment required for JavaFX. To alleviate this problem you must first remove OpenJDK and install the JDK provided by Oracle.
Here is an example of how to install the Oracle JDK in Mint.
Typically you will have opened Eclipse in an effort to develop applications and the Eclipse ini file is pointing to the OpenJDK as the Java Virtual Machine (JVM). To correct this problem edit the Eclipse.ini file listed below.
[codesyntax lang=”ini”]

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
/home/archman/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.rcp.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.appendVmargs
-vm
/opt/java/jdk1.8.0_131/jre/bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/

[/codesyntax]
Make sure the “/opt/java/jdk1.8.0_131/jre/bin” the first line after the -vm switch identifies the correct location of the desired JVM.
You should be able to develop JavaFX applications with this configuration under Linux Mint.
Mr. Arch Brooks, CEO / Software Engineer, Brooks Computing Systems, LLC.  authored this article.

Leave a Reply

Your email address will not be published. Required fields are marked *