...
Info |
---|
As ONOS is a multi-module project, it may appear as a collection of many (about 50 at the time of this writing) projects beginning with "onos-". This is normal for some IDEs such as Eclipse. For a listing of the software modules that comprise ONOS, please refer to the [Javadocs], or [Appendix C] of this Guide. |
...
Build failures may occur if multiple Java versions are installed, and Maven is pointed to the incorrect version. If not set automatically during the Java 8 installation process, The JAVA_HOME environment variable should be set to the JRE installation location for Java 8. The process for verifying/setting the proper version varies with platform.
On OS X
Code Block | ||
---|---|---|
| ||
$ /usr/libexec/java_home /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home |
To set the version, either run or add the following to the shell profile:
Code Block | ||
---|---|---|
| ||
$ export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) |
On Ubuntu
Code Block | ||
---|---|---|
| ||
$ sudo update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1072 auto mode 1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode * 2 /usr/lib/jvm/java-8-oracle/jre/bin/java 1072 manual mode Press enter to keep the current choice[*], or type selection number: |