Re: Maven won't pick up JAVA_HOME

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

 



Hm, there is no jre directory.


On 11/26/2017 11:08 PM, Ed Greshko wrote:
On 11/27/17 05:43, cen wrote:
Perhaps I am just going crazy but maven just won't pick up JAVA_HOME on F27.

1. sudo dnf install maven

2. echo $JAVA_HOME returns /usr/lib/jvm/java-9-openjdk-9.0.0.181-7.fc27.x86_64
(which includes bin dir with JDK tools such as javac, keytool etc so it is JDK for
sure)

3. Any mvn command results in

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


Also tried JDK8 and Oracel Java 9

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-1.b12.fc27.x86_64

export JAVA_HOME=/usr/java/jdk-9.0.1


..same result. I feel like there is some hidden config messing me up

or some weird stuff happening. Anyone has an idea what it could be? Last time I was
still on F26 and it worked.

The last time I did anything with java the JAVA_HOME variable needed to be pointing
to the jre (java runtime engine) directory.

Also, you should be using /usr/lib/jvm/java since your path will become invalid on
upgrades.




_______________________________________________
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