-
Notifications
You must be signed in to change notification settings - Fork 30
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
java.lang.NoSuchFieldException: ucp #182
Comments
Sorry, but the |
I'm getting the same exception when I try to use 'equinoxLaunch' gradle 7.4.2.
It seems to be this line of code.
based on the first few google search results, it seems to be a classloader change from Java 16 onwards. Changing JAVA_HOME to azul 11 solves the problem. The discussion here seems to go over possible approaches to solving the problem. |
Happy to take a PR for fixing Java 16+. |
If I just use the same fix as used in the PR I linked above, it's only a few lines of code. Unfortunately, I'm completely unfamiliar with the workflow for building and testing a gradle plugin, and I'm a little wary of starting down that particular rabbit hole at the moment. Let me make the changes (that shouldn't take much time) and open a PR. You can decide if it's worth testing and merging. |
I found this: https://github.com/diffplug/goomph/blob/f49fa797b535986812924e4b24d3ec417a281b5c/CONTRIBUTING.md. Hopefully, it's as easy to do as it seems :-) |
Attempted fix in |
equinoxLaunch is no longer stopping there (still not working fully :-), so at least that's fixed. |
Using the following build.gradle
plugins {
id "com.diffplug.oomph.ide" version "3.35.0"
}
apply plugin: 'com.diffplug.oomph.ide'
oomphIde {
repoEclipseLatest()
jdt {}
splash rootProject.file('_images/spotless_logo.png')
style {
classicTheme() // oldschool cool
niceText() // nice fonts and visible whitespace
}
}
After running: gradle ide
Get Error:
FAILURE: Build failed with an exception.
Execution failed for task ':ideSetupP2'.
Caused by: java.lang.NoSuchFieldException: ucp
at com.diffplug.gradle.JRE.getClasspath(JRE.java:57)
at com.diffplug.gradle.eclipserunner.JarFolderRunner.open(JarFolderRunner.java:62)
at com.diffplug.gradle.eclipserunner.JarFolderRunner.run(JarFolderRunner.java:47)
at com.diffplug.gradle.eclipserunner.JarFolderRunnerExternalJvm$RunOutside.run(JarFolderRunnerExternalJvm.java:126)
at com.diffplug.gradle.JavaExecable.main(JavaExecable.java:171)
Gradle: 7.4.1
openjdk: 11.0.2
The text was updated successfully, but these errors were encountered: