Closed Karol-G closed 7 years ago
Can you try running gradlew release
?
Fails with "When running gradle with java 5, 6 or 7, you must set the path to jdk8, either with property retrolambda.jdk or environment variable JAVA8_HOME" too.
Please try creating a file gradle.properties
in the root folder of the settlers project and add
java8Home=<PATH-TO-JDK8>
java6Home=<PATH-TO-JDK8>
(please note, you can use JDK8 paths for both)
Does this help?
sadly no. Still same error
Which IDE are you using?
I have inteliJ installed. But currently I am doing everything in the terminal.
I'll try to reproduce it and then see how to fix it. However, this will probably take some days :( Sorry for the trouble...
No problem. I have time :)
You need to have the current JDK. Ubuntu 16.4 is an LTS release but has java 8 available.
You can download it manually from oracle and then run
export JAVA8_HOME=/path/to/your/jdk1.8.0_xx/
./gradlew build
(tested on Ubuntu 14.4)
Alternatively to downloading it, you can install the current java version:
sudo apt-get install openjdk-8-jdk openjdk-8-demo openjdk-8-doc openjdk-8-jre-headless openjdk-8-source
If you already installed it, you should find the install directory by running:
update-alternatives --list javac
OK got everything working now.
I assume my JDK installation was messed up. So I did a clean setup and after some tries I was able to build the project with ./gradlew release
Thanks for the help :)
Great 👍
I tried multiple times to build the project, but failed miserably at it. I followed the instructions of the "Compiling using gradle" guide but when I try to run ./gradlew :assembleDist it says "Task 'assembleDist' not found in root project 'settlers-remake'". So I tried to run ./gradlew build, which failed with "When running gradle with java 5, 6 or 7, you must set the path to jdk8, either with property retrolambda.jdk or environment variable JAVA8_HOME". I am unsure now if the guide is outdated and what commands I have to run. My OS is Ubuntu 16.04.