Re: How to prevent headless JVM (Fedora 25)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tech support considered Java dependencies to be my problem.  The app is just an executable JAR.

I was unable to install the full Java via dnf, which is why I went with the Oracle rpm.  Pretty sure the rpm conflicted with the headless JVM, so I removed that one. I can't explain this, user error is a likely possibility.  


Thanks 



On Wed, Jan 4, 2017 at 9:14 PM, Christopher
<ctubbsii@xxxxxxxxxxxxxxxxx> wrote:
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.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]
  Powered by Linux