On 11/27/17 07:13, cen wrote:
I feel like my problem is something deeper or something silly at this point..
sudo dnf install java-9-openjdk-devel Last metadata expiration check: 0:00:00 ago on Mon 27 Nov 2017 12:09:07 AM CET. Package java-9-openjdk-devel-1:9.0.0.181-7.fc27.x86_64 is already installed, skipping. Dependencies resolved. Nothing to do. Complete!
export JAVA_HOME=/etc/alternatives/java_sdk_9_openjdk
mvn -v The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE
I have a "default" F27 KDE system on a testing laptop. I don't know if you have a requirement to use java-9. But in the "default" system java 1.8 is installed.
I just installed maven and it added
Installing weak dependencies: java-1.8.0-openjdk-devel x86_64 1:1.8.0.151-1.b12.fc27 updates 9.8 M
I have....
java-1.8.0-openjdk-headless-1.8.0.151-1.b12.fc27.x86_64 javapackages-tools-5.0.0-7.fc27.noarch java-1.8.0-openjdk-devel-1.8.0.151-1.b12.fc27.x86_64 java-1.8.0-openjdk-1.8.0.151-1.b12.fc27.x86_64
installed and no JAVA_HOME
[egreshko@acer ~]$ mvn -v Apache Maven 3.5.0 (Red Hat 3.5.0-6) Maven home: /usr/share/maven Java version: 1.8.0_151, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.fc27.x86_64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.13.15-300.fc27.x86_64", arch: "amd64", family: "unix"
I suppose I could give it a try with java-9 on a VM. If that is what you require.