The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Preparing the extension template, issue with gradle
anaRodrigues
Member Posts: 33 Contributor II
Can't initialize the project:
Also, on eclipse I get this error:
I don't know what to do here, could someone help please?
./gradlew --no-daemon initializeExtensionProjectI get this error:
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.8/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
FAILURE: Build failed with an exception.
* What went wrong:
com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: org/gradle/api/internal/java/JavaLibrary
> java.lang.NoClassDefFoundError: org/gradle/api/internal/java/JavaLibraryAlso, on eclipse I get this error:
Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-6.8-bin.zip'.
com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: org/gradle/api/internal/java/JavaLibrary
java.lang.NoClassDefFoundError: org/gradle/api/internal/java/JavaLibrary
org/gradle/api/internal/java/JavaLibrary rapidminer-extension-template-master line 0 Gradle Error Marker
Tagged:
0
Best Answers
-
anaRodrigues Member Posts: 33 Contributor IIHi @gmeier
I believe now both my java and gradle versions are correct:
When I try to initialize, I get this error:PS C:\Users\ASUS\Documents\Mestrado BBC\tese\rapidminer-extension-template-master> ./gradlew initializeExtensionProject Starting a Gradle Daemon (subsequent builds will be faster) FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'rapidminer-extension-template-master'. > Could not resolve all dependencies for configuration ':provided'. > Could not resolve com.rapidminer.studio:rapidminer-studio-settings:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-settings:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-settings/9.8.0/rapidminer-studio-settings-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. Searched in the following locations: https://jcenter.bintray.com/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.pom https://jcenter.bintray.com/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.jar https://maven.rapidminer.com/content/groups/public/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.pom https://maven.rapidminer.com/content/groups/public/com/rapidminer/rapidminer-dependencies/9.8.0/rapidminer-dependencies-9.8.0.jar > Could not resolve com.rapidminer.studio:rapidminer-studio-interfaces:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-interfaces:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-interfaces/9.8.0/rapidminer-studio-interfaces-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-filesystem:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-filesystem:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-filesystem/9.8.0/rapidminer-studio-filesystem-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-license:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-license:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-license/9.8.0/rapidminer-studio-license-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-logging:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-logging:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-logging/9.8.0/rapidminer-studio-logging-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-i18n:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-i18n:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-i18n/9.8.0/rapidminer-studio-i18n-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-security:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-security:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-security/9.8.0/rapidminer-studio-security-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-tools:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-tools:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-tools/9.8.0/rapidminer-studio-tools-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-encryption:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-encryption:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-encryption/9.8.0/rapidminer-studio-encryption-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. > Could not resolve com.rapidminer.studio:rapidminer-studio-globalsearch:9.8.0. Required by: project : > com.rapidminer.studio:rapidminer-studio-core:9.8.0 > Could not resolve com.rapidminer.studio:rapidminer-studio-globalsearch:9.8.0. > Could not parse POM https://maven.rapidminer.com/content/groups/public/com/rapidminer/studio/rapidminer-studio-globalsearch/9.8.0/rapidminer-studio-globalsearch-9.8.0.pom > Could not find com.rapidminer:rapidminer-dependencies:9.8.0. * 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 Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 18s
Ana0 -
jczogalla Employee-RapidMiner, Member Posts: 144 RM EngineeringHi @anaRodrigues
It seems there was a problem with our dependency management and this was fixed in our maven on Friday. You might have to clear your maven cache for the RapidMiner Studio artifact, but now it should work.
Cheers
Jan0
Answers
are you using the extension template from https://github.com/rapidminer/rapidminer-extension-template? I am a bit puzzled that this is using gradle 6.8 for you; when running 'gradlew -version' this leads to a 4.6 version for me. Just executing 'gradlew --no-daemon initializeExtensionProject' in the folder which contains the README.md should work. The error you quoted could be caused by a wrong gradle version, so try to ensure that you are using a 4.x version. We are working on making the extensions compatible with gradle 6 but that template has not been adjusted yet.
You are right, I had changed the gradle version to match the one I have installed. I did everything from the beginning without changing anything and still got an error. I will try downgrading the gradle version on eclipse.
Description Resource Path Location Type
Thank you,
Ana
(also works with --no-daemon but then there is no popup and instead you need to enter Y)
Still not working (from command line):
Thanks,
Ana
org.gradle.java.home=/path_to_jdk_directory
in the gradle.properties.This is where my JAVA_HOME is pointing:
Also, my java version:
I have the GRADLE_HOME environment variable set, so I don't know why the command is not working.
I have also downgraded my gradle version to this 4.6
However, if I ask for the gradle version:
Sorry for the trouble and thank you,
Ana
yes, that means you have Java 15, but you need 8. You can for example download it from here and then point your JAVA_HOME to it.
For the 'gradlew -version' command, you need to go to your extension-template folder and execute it there.