duckietown / hatchery

🐣 An IDE for building ROS applications
http://www.ros.org/
Other
8 stars 1 forks source link

Execution failed for task ':compileKotlin' #1

Closed TrinhNC closed 6 years ago

TrinhNC commented 6 years ago

I encounter this issue when try running ./gradlew runIde. It maybe a problem with JDK but I don't know how to fix it? Any ideas?

> Configure project : 
Project root directory: /home/tu/duckie_town/Software/catkin_ws/src/CMakeLists.txt
Project root directory: /home/tu/duckie_town/Software/catkin_ws/src/CMakeLists.txt
Cannot find alternate SDK path: build/clion/clion-2017.3.3. Default IDEA will be used : /home/tu/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2017.3.3/fe77e970a22ee5ccdd964f3f487a061a300ee361/ideaIC-2017.3.3

Cannot find alternate SDK path: build/clion/clion-2017.3.3. Default IDEA will be used : /home/tu/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2017.3.3/fe77e970a22ee5ccdd964f3f487a061a300ee361/ideaIC-2017.3.3
e: No class roots are found in the JDK path: /usr/lib/jvm/java-9-openjdk-amd64

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
3 actionable tasks: 1 executed, 2 up-to-date
breandan commented 6 years ago

Thanks for reporting. This appears to be a known problem with openjdk-9. Please either install openjdk-8 or replace the offending JAR file as per this answer.