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

IJava % ./gradlew installKernel failed #129

Open
aaazzz640 opened this issue Jan 28, 2022 · 2 comments
Open

IJava % ./gradlew installKernel failed #129

aaazzz640 opened this issue Jan 28, 2022 · 2 comments

Comments

@aaazzz640
Copy link

hi all,

I tried to setup the IJava based on the instructions however,
after running cd IJava

then run $ chmod u+x gradlew && ./gradlew installKernel i got the problem like this:

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

Mine is es macos system and just got java 17 installed.

what might be the solution... many thanks :)

@mjw99
Copy link

mjw99 commented Feb 23, 2022

With --stacktrace and Ubuntu 20.04.3 and openjdk-17, I see:

...
Caused by: java.lang.IllegalAccessException: module java.base does not open java.lang to unnamed module @4d154ccd
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
        ... 95 more

With openjdk-11, I do not see the error above. Hence this is probably related to openjdk-17

@hanslovsky
Copy link

Java 17 is supported only by gradle versions 7.3+. I created SpencerPark/Jupyter-kernel-installer-gradle#14 and #134 to bump gradle version to 7.4.2.

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