Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./gradlew installkernel not working #150

Open
jonben3215 opened this issue Jan 20, 2024 · 3 comments
Open

./gradlew installkernel not working #150

jonben3215 opened this issue Jan 20, 2024 · 3 comments

Comments

@jonben3215
Copy link

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.

  • What went wrong:
    Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().

Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().

  • 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 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
Copy link

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
Copy link

andrus commented Oct 22, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants