Problem:
I installed the new Fedora, Maven, and Eclipse system. I checked the project and now I am trying to download all the dependencies manually using the terminal.
Execution mvn clean installI get:
which: no javac in (/home/user/apache-maven-3.2.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/user/.local/bin:/home/user/bin)
Warning: JAVA_HOME environment variable is not set.
// ... successfully downloading all dependencies ...
[ERROR] COMPILATION ERROR :
[INFO]
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO]
[INFO]
[INFO] BUILD FAILURE
[INFO]
[INFO] Total time: 04:48 min
[INFO] Finished at: 2014-09-13T19:01:37+02:00
[INFO] Final Memory: 14M/78M
[INFO]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project featurecrawler: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
Additional Information:
I have not installed Java yet, I am using what is already supplied with Fedora.
The /usr/lib/following folders are located:
- Java
- Java 1.5.0
- Java 1.6.0
- Java 1.7.0
- Java 1.8.0
- Jvm
Except jvm, all other folders look empty.
jvm contains the following folders:
- Java-1.7.0-OpenJDK-1.7.0.60-2.4.3.0.fc20.x86_64
- jre-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64 (link to
java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64/jre) - jre-1.7.0-openjdk (link to
/etc/alternatives/jre_1.7.0_openjdk) - jre-1.7.0 (link to
/etc/alternatives/jre_1.7.0) - jre-openjdk (
/etc/alternatives/jre_openjdk) - jre (
/etc/alternatives/jre)
Eclipse- > - > Java- > JRE /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64
$ vi ~/.bash_profile export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc20.x86_64.
which java: /usr/bin/java
Java , , . Oracle Java?