Your "Vendor tech support" should have just told you to do 'sudo dnf install java'.
In Fedora 25, "java" is split across more than one package. Most applications only need a partial installation, and that's what the "-headless" package gives you. If you need the rest of "java", you need to install the extra bits you need.
$ sudo dnf install java # to install the full JRE
$ sudo dnf install java-sdk # to also install the JDK
If your "Java GUI app" was shipped as an RPM, it should have had a proper dependency on 'java' or 'jre' and done the right thing during installation. If it wasn't an RPM, you just needed to ensure all of its dependencies were installed first.
Did you also uninstall the "-headless" version when you installed the Oracle JVM? That's the only thing I can think of which would account for what you described. If that was the case, then you would have seen that LibreOffice reinstalled the java-headless, because it is a dependency. When that was reinstalled, it would have updated your "alternatives" priorities, which apparently preferred the "-headless" version. Had you left the "-headless" version installed, and simply updated the alternatives after you installed Oracle JVM, this wouldn't have happened. Alternatively, had you simply installed the full OpenJDK version which ships with Fedora 25 by doing "sudo dnf install java", this wouldn't have happened.
Hope that helps explain what you experienced.
In Fedora 25, "java" is split across more than one package. Most applications only need a partial installation, and that's what the "-headless" package gives you. If you need the rest of "java", you need to install the extra bits you need.
$ sudo dnf install java # to install the full JRE
$ sudo dnf install java-sdk # to also install the JDK
If your "Java GUI app" was shipped as an RPM, it should have had a proper dependency on 'java' or 'jre' and done the right thing during installation. If it wasn't an RPM, you just needed to ensure all of its dependencies were installed first.
Did you also uninstall the "-headless" version when you installed the Oracle JVM? That's the only thing I can think of which would account for what you described. If that was the case, then you would have seen that LibreOffice reinstalled the java-headless, because it is a dependency. When that was reinstalled, it would have updated your "alternatives" priorities, which apparently preferred the "-headless" version. Had you left the "-headless" version installed, and simply updated the alternatives after you installed Oracle JVM, this wouldn't have happened. Alternatively, had you simply installed the full OpenJDK version which ships with Fedora 25 by doing "sudo dnf install java", this wouldn't have happened.
Hope that helps explain what you experienced.
On Wed, Jan 4, 2017 at 8:05 PM JUSTIN TAYLOR <justay@xxxxxxxxxx> wrote:
I have the non-headless JVM installed now, and I haven't tried to replicate the issue since.Does dnf keep a log?Here's my best recollection of the sequence of events:1. Clean install of Fedora 24 on a new laptop.2. Java GUI app failed. Vendor tech support eventually identified the headless JVM as the culprit.3. Installed Oracle JVM via rpm.4. Java GUI app worked.5. Upgrade to Fedora 25, and Java GUI app still worked.6. Install libreoffice calc & writer via dnf.7. Java GUI app failed. I checked and the only JVM installed was the headless one.8. Install non-headless openjdk via dnf.9. Java GUI app works._______________________________________________On Wednesday, January 4, 2017 7:13 AM, Deepak Bhole <dbhole@xxxxxxxxxx> wrote:
* JUSTIN TAYLOR <justay@xxxxxxxxxx> [2017-01-03 19:48]:
> When I installed Fedora Workstation, it loaded the headless JVM only. I installed the full JVM, but installing libreoffice via dnf reverted back to the headless one. It's almost like it considers the headless one to be the default.
>
The headless and GUI enabled JVM package are not independent JVMs. The
GUI enabled JVM package just supplies some additional .so files; the
same JVM bits are used underneath.
The only way (I can see) it would revert back to headless is:
1. A bug in the JVM itself where GUI libraries are installed but it is
not seeing/loading them (we have never seen this before though)
2. A bug in dnf where it uninstalled the GUI enabled package due to some
weird conflict
Are you able to reproduce this issue, or do you still have access to the
system where the problem is happening?
Cheers,
Deepak
> On Tuesday, January 3, 2017 10:07 AM, Deepak Bhole <dbhole@xxxxxxxxxx> wrote:
>
>
> * JUSTIN TAYLOR <justay@xxxxxxxxxx> [2016-12-26 12:15]:
> > I have a 3rd party app that use a Java GUI, so it won't run on a headless JVM. I had it working until I installed a different app using dnf. It overwrote my JVM with a headless one and now the Java GUI app is broken. Is there a way to install/register a non-headless JVM with Fedora so it won't keep installing the headless JVM?
>
>
> The headless package (java-1.8.0-openjdk-headless) is a standalone
> package intended to be used on headless servers where the user may not
> want graphics related libraries installed.
>
> The headless package is just a subpackage of the main OpenJDK build and
> all it is is the full JRE minus some graphics related shared libraries
> (which are then provided by the 'java-1.8.0-openjdk' package).
>
> If you are using GUI apps, you just need to install 'java-1.8.0-openjdk'
> and you will be able to run GUI apps. Apps distributed via Fedora should
> have the proper dependencies (on headless vs full package); if you
> notice that once does not, please open a bug against that package.
>
> Cheers,
> Deepak
>
> > Thanks
>
> > _______________________________________________
> > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>
>
>
>
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
--
Christopher
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx