SpencerPark / IJava

A Jupyter kernel for executing Java code.
MIT License
1.11k stars 219 forks source link

./gradlew installkernel not working #150

Open jonben3215 opened 10 months ago

jonben3215 commented 10 months ago

When cloning on my computer and ran the code there is what I got: jonben3215@cu-biot-4-10 IJava % ./gradlew installKernel

FAILURE: Build failed with an exception.

BUILD FAILED in 0s jonben3215@cu-biot-4-10 IJava % java --version java 17.0.10 2024-01-16 LTS Java(TM) SE Runtime Environment (build 17.0.10+11-LTS-240) Java HotSpot(TM) 64-Bit Server VM (build 17.0.10+11-LTS-240, mixed mode, sharing)

jonben3215@cu-biot-4-10 IJava % gradle -v


Gradle 8.5

Build time: 2023-11-29 14:08:57 UTC Revision: 28aca86a7180baa17117e0e5ba01d8ea9feca598

Kotlin: 1.9.20 Groovy: 3.0.17 Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023 JVM: 21.0.1 (Homebrew 21.0.1) OS: Mac OS X 14.2.1 aarch64

I do not know what is going on.

dwijgohil24 commented 1 month ago

I was facing the same issue. Then after going through few solutions through the web, I finally found out that downgrading your Java JDK to version - 11 will solve this issue.

So, I would suggest trying downgrading JDK to version 11 and try, this worked for me.

andrus commented 1 month ago

In this context, I wanted to mention that JJava (a supported fork of iJava), has switched the Maven for builds, and consequently can be built with any Java version (11, 17, 21, etc.).

BTW, curious why you'd need to build the kernel from source in the first place? Is this because of custom patches on top of iJava to fix some of its issues? In that case JJava may already have that fix. And if not, we'd be happy to look at the problem and address it.

jonben3215 commented 1 month ago

Hey Andrus,

Thanks for responding. I actually fixed the issue. It seems like I wrote something that gradle file, I took a closer look with my partner, and he actually caught the problem and has fixed the issue. Everything now works. Thanks.