Results 1 to 7 of 7

Thread: Openjdk replacement with oracle jdk

  1. #1

    Default Openjdk replacement with oracle jdk

    Hello,
    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: https://bugzilla.opensuse.org/show_bug.cgi?id=976102) because he felt this was the only technique that would work.

    Thanks,
    Greg Laird

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,823
    Blog Entries
    1

    Default Re: Openjdk replacement with oracle jdk

    This following link is to the SDB:Install Java
    https://en.opensuse.org/SDB:Installing_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)
    https://github.com/putztzu/openSUSE_Oracle_Java_Install

    You can also take a look at this which was contributed by a User
    https://forums.opensuse.org/showthre...highlight=java

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: Openjdk replacement with oracle jdk

    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?

    Thanks,
    Greg Laird

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,823
    Blog Entries
    1

    Default Re: Openjdk replacement with oracle jdk

    Yes,
    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.
    https://wiki.openjdk.java.net/display/OpenJFX/Main

    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.

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5

    Default Re: Openjdk replacement with oracle jdk

    Code:
    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.
    https://wiki.openjdk.java.net/display/OpenJFX/Main
    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.

    Best
    Greg Laird

  6. #6
    Join Date
    Dec 2008
    Location
    Norway
    Posts
    540

    Default Re: Openjdk replacement with oracle jdk

    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.

  7. #7
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,037

    Default Re: Openjdk replacement with oracle jdk

    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
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •