From 56e5d54a73957aa6ad1fe7d65dcddbbe24d65154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Mon, 4 Jun 2018 20:10:09 +0200 Subject: [PATCH] add pre-prequisites doc --- prerequisites/README.md | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 prerequisites/README.md diff --git a/prerequisites/README.md b/prerequisites/README.md new file mode 100644 index 0000000..9085311 --- /dev/null +++ b/prerequisites/README.md @@ -0,0 +1,50 @@ +# Pre-requisites for Camel + +To run the provided examples, you would need: +- Java 8 +- Maven + +## Java + +Camel requires Java 8 ([Java 9 is currently being tested and Java 10 is out-of-scope](http://camel.apache.org/camel-2200-release.html)). +Make sure your java version is correct by running: +``` +$ java -version +java version "1.8.0_131" +Java(TM) SE Runtime Environment (build 1.8.0_131-b11) +Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode) +``` + +If you do not have Java installed, on MacOS you can use [Brew](https://brew.sh/) to install Java: +``` +brew tap caskroom/versions +brew cask install java8 +``` + +If you have a Fedora/CentOS/RHEL, you can install OpenJDK: +``` +sudo yum install java-1.8.0-openjdk-devel +``` + +## Maven + +Make sure [Maven](https://maven.apache.org/) is installed: +``` +$ mvn -version +Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T21:39:06+02:00) +Maven home: /usr/local/Cellar/maven/3.5.0/libexec +Java version: 1.8.0_131, vendor: Oracle Corporation +Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre +Default locale: en_US, platform encoding: UTF-8 +OS name: "mac os x", version: "10.13.4", arch: "x86_64", family: "mac" +``` + +If you do not have Maven installed, on MacOS you can install it with Brew: +``` +brew install maven +``` + +On Fedora/CentOS/RHEL, you can install it from the optional repo: +``` +sudo yum install maven +```