Openjdk replacement with oracle jdk

I am trying to install some software that uses javafx. As far as I can tell, opensuse’s openjdk package does not contain the openjfx library. This library comes packaged with the oracle jdk. I have tried to install the oracle jdk without removing the openjdk and this fails due to the overlap of java routines and packages. So, my question: is there a simple way to remove opensuse’s openjdk environment so that I can install the oracle jdk–there probably are other packages that depend on the openjdk–would I have to remove them as well?. Better yet would be an easy way to add the openjfx package–I have looked and the documentation seems quite complex. Plus I have read a post by another user who did try to install the openjfx and ran into a lot of trouble. He ended up removing openjdk and installing the oracle version (see: because he felt this was the only technique that would work.

Greg Laird

This following link is to the SDB:Install Java

I haven’t reviewed it for how well it describes installing Oracle Java 8… Skimming the SDB(which has been reworked many times) I’m surprised to see references to Oracle Java 7 instead of 8, so YMMV. The Oracle Java 8 architecture and components is radically different than Oracle Java 7 so I don’t know how well the instructions work to install Oracle Java 8.

If for some reason you are willing to install Oracle JDK 7, the scripts I created to install it will install Oracle side by side with openjdk in just a few seconds so that they don’t step on each other and you can switch between your Java. The last time I updated the scripts they were supposed to match the last release of Oracle JDK 7 so I don’t expect there should be any modifications necessary (unless Oracle surprises and releases another version anyway)

You can also take a look at this which was contributed by a User


Thanks for the pointer to the installation instructions. To be honest, I can’t imagine that I would navigate this complexity without something going wrong. I am not a newbie–I have spent many many years in this field–but I do know that unless one is pretty familiar with structures, seemingly small problems may not be so transparent and it may take a long time to straighten things out.

What I am really trying to do is to develop an gui application and I had thought javaFx would be a good development environment. I know that qt is used quite a bit on linux but my application needs to run both on linux and windows so I thought javaFx would be a better solution. I do know that java development goes in fits and starts and I am wondering if developers have lost interest in javaFx and that if things are moving to qt.

You seem to have some suse system knowledge, do you have any thoughts on this?

Greg Laird

Installing Oracle Java can be an adventure, which is why I created scripts that enhanced the installation of Oracle JDK 7 which as you say, eliminates well over a half hour’s work with guaranteed results(compared with the SDB instructions).

But, Oracle 8 radically changed so many things, I couldn’t port my previous work to Oracle 8.
You can take a look at that last link in my last post, I haven’t tried it or inspected what is described, but that User claimed to have no problems installing Oracle JDK 8 using the steps he described.

If you’d like to try the JavaFX in openjdk, it got off to a slow start but seems to have made a lot of progress in a short amount of time.
The following link is to this project, which should cover just about everything you want to know or is possible to do today.

Currently, comparing openjdk and Oracle Java, the JRE runtimes are supposed to be 100% compatible, whatever will run in one will also run in the other. But if you do any development, the the compiler is supposed to be slightly different… Although apps compiled with Oracle javac is supposed to run on both openjdk and Oracle, there is supposed to be a very slight chance that the reverse won’t work. And, some very new JDK components like JavaFX aren’t likely fully featured unless you use Oracle Java.

As for what technology to write your app in, well…
It depends on exactly what you want to do and your coding expertise to build what you want.
Personally, I’ve found that with enormous changes in the Javascript world, there are now libraries that make it possible to build the same functionality and graphical effects that used to be possible only in compiled languages and platforms. And then if you can build your app using HTML5, Javascript and CSS3, it’s not only cross platform, you can also run it from a web server, locally as a nodejs app or if on practically any modern mobile OS, in a special sandboxed script application environment.


If you'd like to try the JavaFX in openjdk, it got off to a slow start  but seems to have made a lot of progress in a short amount of time.
The following link is to this project, which should cover just about everything you want to know or is possible to do today.

I did try this and deposited the relevant files into the system jre folder and I can seem to execute javaFx applications from eclipse. Thanks for your help; it has gotten me a ways down the road.

Greg Laird

I find it disappointing that OpenJFX is not packaged for OpenSUSE, still after all this time. Wondering what the holdup is.
Hoping things might change in this regard when Java 9 is released.

On Wed, 30 Aug 2017 14:16:02 +0000, DJViking wrote:

> Wondering what the holdup is.

As a community project, maybe it’s just that nobody who’s interested has
stepped forward to volunteer to maintain it.


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at