On 11/27/17 16:53, cen wrote: > > On 11/27/2017 01:51 AM, Ed Greshko wrote: >> 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. >> > 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. > > 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. 2 things. First, you noticed that part of the message you got during the install says.... 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 Which is telling you that maven is depending on java-1.8. Second, a question. When you ran the command did you have JAVA_HOME set? If you did, how about trying it again without it being set? -- Fedora Users List - The place to go to speculate endlessly
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx