Skip to content
Permalink
Browse files
Update minimum Java version to 8 (DIRAPI-363)
  • Loading branch information
seelmann committed Apr 3, 2021
1 parent 6ab28fc commit 91a455d069274d09b3e8e9fb8b7152d522bbf107
Showing 8 changed files with 18 additions and 18 deletions.
@@ -16,17 +16,17 @@ This section describes how ApacheDS can be installed and started on different pl

## Prerequisites

* **Java 7.0**. We recommend using [Oracle's JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html).
* **Java 8**. We recommend [AdoptOpenJDK](https://adoptopenjdk.net/).

You can check your java installation with:

java -version

this should response something like:

java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)

* **384 MB RAM** for the JVM. That's the default setting, how to change that is described [here|1.4. Basic configuration tasks#MemoryAllocation]

@@ -37,7 +37,7 @@ and an optional label that indicates the maturity of a release:

The applicable coding standards for ADS 2.0 are described in [Coding Standards](coding-standards.html)

There are some more rules, as we are using **Java 6** now :
There are some more rules, as we are using **Java 8** now :

* Use generics as much as you can. Generic are a good way to avoid casting, and it enforce the usage of the correct type.
* If you can avoid *Iterators*, do so. There is this cool construction with a **for( Type t:<collection instance> )** : use it !
@@ -48,7 +48,7 @@ There are some more rules, as we are using **Java 6** now :

Here is a guide on how to cut a new release. This is a long process, expect it to last a few hours !

First, you need to have a recent version of Maven (we are using 3.0.4) and a recent version of the JDK (Java 8 is required, due to some checkstye plugin requiring it. Note that the generated code is Java 7 compliant).
First, you need to have a recent version of Maven (we are using 3.0.4) and a recent version of the JDK (Java 8 is required).

### Maven Settings

@@ -39,7 +39,7 @@ and an optional label that indicates the maturity of a release:

The applicable coding standards for LDAP API 1.0 are described in [Coding Standards](coding-standards.html)

There are some more rules, as we are using **Java 6** now :
There are some more rules, as we are using **Java 8** now :

* Use generics as much as you can. Generic are a good way to avoid casting, and it enforce the usage of the correct type.
* If you can avoid *Iterators*, do so. There is this cool construction with a **for( Type t:<collection instance> )** : use it !
@@ -26,4 +26,4 @@ The [User Guide](user-guide.html) pages gives the list of features the API provi

## Prerequisite

This API requires **Java 7** or upper.
This API requires **Java 8** or higher.
@@ -10,7 +10,7 @@ navNextText: 2 - Basic LDAP API Usage

# 1.4 - Preparation to code

The **Apache Directory LDAP API** requires **Java 7** or higher.
The **Apache Directory LDAP API** requires **Java 8** or higher.

Secondly, you must download the **[API 1.0](https://directory.apache.org/api/downloads-1.html)** or **[API 2.0](https://directory.apache.org/api/downloads-2.html)**. This package contains the **LDAP API** plus all of its dependent jars (like _commons-lang_, _slf4j_...).

@@ -10,11 +10,11 @@ Provide instructions to install an **ApacheDS** instance and setup for use with

There a few mandatory elements that need to be installed on the **ApacheDS Host** :

* Java 7 or greated sdk
* Java 8 or greated sdk

On the **Fortress Host**, you will need those components :

* Java 7 or greated sdk
* Java 8 or greated sdk
* Apache Maven 3+
* A web browser
* Git
@@ -28,7 +28,7 @@ Follow the installation guide on [the ApacheDS download pages](https://directory

The base installation will install a server running on port *10389*, with a default user *uid=admin,ou=system* and the password *secret*. Please change those values !!!

Note that the server requires a Java 7 sdk to run.
Note that the server requires a 8 sdk to run.

## Installing Apache Directory Studio

@@ -44,7 +44,7 @@ The complete description of the steps are found [on this page](https://directory

## Installing Fortress Core

Assuming that **Git**, **Java 7** and **Apache Maven** are installed on the **Fortress Host**, and that **ApacheDS** is running on the **ApacheDS Host**, we can now configure and install **Fortress Core** on the **Fortress Host**
Assuming that **Git**, **Java 8** and **Apache Maven** are installed on the **Fortress Host**, and that **ApacheDS** is running on the **ApacheDS Host**, we can now configure and install **Fortress Core** on the **Fortress Host**

The setup will use your specific configuration to create everything needed on the LDAP server to operate **Fortress**. It will also inject specific schema elements into the ldap server; entries that are required for *Fortress* to work. Once done, the **Fortress** APIs are ready to use.

@@ -12,7 +12,7 @@ We will describe how to get the code, build it, and release it.

### Prerequisites for building

You must have installed **Maven 3.0.4** and have a **JDK 7** installed on your computer. A working internet connection is also mandatory, unless you have all the needed dependences and plugins loaded locally.
You must have installed **Maven 3.0.4** and have a **JDK 8** installed on your computer. A working internet connection is also mandatory, unless you have all the needed dependences and plugins loaded locally.

<DIV class="note" markdown="1">
If the build hangs or you get an out of memory exception please increase the heap space:
@@ -43,10 +43,10 @@ On a Linux box you could add the following to the .bashrc file (.bashrc is a fi

Windows users, use Control Panel -> System -> Advanced -> Environment Variables

### JDK 7
### JDK 8

<DIV class="note" markdown="1">
We recommend using a version >= 1.7
We recommend using a version >= 8
</DIV>

Any newer version should also work.
@@ -118,7 +118,7 @@ You can declare new variables in Eclipse in _Windows -> Preferences..._ and sele

The applicable coding standards for Mavibot are described in [Coding Standards](coding-standards.html)

There are some more rules, as we are using **Java 7** now :
There are some more rules, as we are using **Java 8** now :

* Use generics as much as you can. Generic are a good way to avoid casting, and it enforce the usage of the correct type.
* If you can avoid *Iterators*, do so. There is this cool construction with a **for( Type t:<collection instance> )** : use it !
@@ -24,7 +24,7 @@ and various utility plugins.

You can check about what is needed to be able to start coding on [the Developers' guide](../developers-guide.html).

In any case, you need a Java JDK 7, Eclipse Luna-SR2, Maven 3.2.5, subversion 1.8.8.
In any case, you need a Java 8, Eclipse Luna-SR2, Maven 3.2.5, subversion 1.8.8.

## Howtos

0 comments on commit 91a455d

Please sign in to comment.