Re: Maven won't pick up JAVA_HOME

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

 



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


On 11/26/2017 11:54 PM, Ulf Volmer wrote:
On 26.11.2017 23:02, Ulf Volmer wrote:
On 26.11.2017 22:43, cen wrote:

1. sudo dnf install maven
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
is java-1.8.0-openjdk-devel installed?
sorry i did not read your post correctly. especially that you are using
java 9. So again my question:

is java-9-openjdk-devel installed?

[ulf@fc27-x1 ~]$ export JAVA_HOME=/etc/alternatives/java_sdk_9_openjdk
[ulf@fc27-x1 ~]$ mvn -v
Apache Maven 3.5.0 (Red Hat 3.5.0-6)
Maven home: /usr/share/maven
Java version: 9.0.1, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-9-openjdk-9.0.1.11-1.fc27.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.13.12-300.fc27.x86_64", arch: "amd64",
family: "unix"

best regards
Ulf
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
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