From 998851c9fbe1e4dbaf0b15ba98e84141c35b249a Mon Sep 17 00:00:00 2001 From: Harald Kuhr Date: Tue, 4 Aug 2015 08:28:29 +0200 Subject: [PATCH] TMI-158: Fixed build instructions. Building with Java 8 should now work without any special settings. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c8bb14d5..9dfc768b 100644 --- a/README.md +++ b/README.md @@ -422,9 +422,9 @@ Build the project (using [Maven](http://maven.apache.org/download.cgi)): $ mvn package -Currently, the only supported JDK for making a build is Oracle JDK 7.x. +Currently, the recommended JDK for making a build is Oracle JDK 7.x or 8.x. -It's possible to build using OpenJDK, but some tests will fail due to some minor differences between the color management systems used. You will need to either disable the tests in question, or build without tests altogether. To build using JDK 8, you need to pass `-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider` to revert to the color manangement system used in Java 7. +It's possible to build using OpenJDK, but some tests might fail due to some minor differences between the color management systems used. You will need to either disable the tests in question, or build without tests altogether. Because the unit tests needs quite a bit of memory to run, you might have to set the environment variable `MAVEN_OPTS` to give the Java process that runs Maven more memory. I suggest something like `-Xmx512m -XX:MaxPermSize=256m`.