

# Use the following commands to select Oracle Java 10 as the default Rpm -ivh /path/to/installed/rpm # May need sudo Sudo update-alternatives -config javac # Select the option with Oracle java 10įedora, CentOS (anything using RPM packages):

Sudo update-alternatives -config java # Select the option with Oracle java 10

# If you have other versions of java installed, run the following Sudo add-apt-repository ppa:linuxuprising/java Ubuntu, Debian, Mint (anything using the APT package manager): This can lead to some issues with JavaFx, so make sure you install the Oracle version by running the following commands according to your distribution (if yours isn't listed, you probably have the expertise to install the Oracle version of Java on your own): Most distros use the openJDK instead of Oracle's.
