On 11/27/2017 01:51 AM, Ed Greshko
wrote:
That can't be true because I used maven with java 9 in F26 from updates-testing with absolutely no problems. And I have same problem with java 8 anyway.On 11/27/17 07:39, Ed Greshko wrote:I suppose I could give it a try with java-9 on a VM. If that is what you require.As previously noted. I got.... [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" on my default testing system. Note that the Java home points to a "jre" directory. Installing java-9 on a VM shows there to be no jre supplied with java-9. So, I think one must be content with running java-1.8 with maven. After removing all versions of java and maven with dnf I tried to do a fresh install and now even that fails: Install package 'maven' to provide command 'mvn'? [N/y] y * Waiting in queue... * Loading list of packages.... * Downloading details about the software sources.... * Loading list of packages.... * Downloading details about the software sources.... * Loading list of packages.... The following packages have to be installed: java-1.8.0-openjdk-devel-1:1.8.0.151-1.b12.fc27.x86_64 OpenJDK Development Environment maven-1:3.5.0-6.fc27.noarch Java project management and project comprehension tool Proceed with changes? [N/y] y * Waiting in queue... * Waiting for authentication... * Waiting in queue... * Downloading packages... * Requesting data... * Testing changes... * Installing packages... /usr/bin/mvn: Failed to set JAVACMD 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 Something on my system seems to be off and I have no idea what.
|
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx