Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Project erroring("The supplied phased action failed with an exception.")
Project erroring [message #1856790] Tue, 03 January 2023 04:40 Go to next message
William Martin is currently offline William MartinFriend
Messages: 1
Registered: January 2023
Junior Member
While trying to set up an eclipse environment for minecraft modding, I encountered this error and am unable to find the solution. I am not very savvy with gradle or eclipse and some help would be appreciated.

Error:
The supplied phased action failed with an exception.
Could not open cp_init generic class cache for initialization script 'C:\Users\user\Documents\GitHub\Unifye\Minecraft\selectiveHardcoreWorkspace\.metadata\.plugins\org.eclipse.buildship.core\init.d\eclipsePlugin.gradle' (C:\Users\user\.gradle\caches\7.5.1\scripts\7fciaz2tzo3lxxw75zggl661a).
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63

I was following a youtube tutorial and couldn't follow along anymore because of the error. I can't seem to build with gradle like he does and have no options when I right click the gradle build.
Re: Project erroring [message #1856795 is a reply to message #1856790] Tue, 03 January 2023 07:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
This question sounds similar to this one:

https://stackoverflow.com/questions/74779810/how-to-solve-the-unsupported-class-file-major-version-63-error-when-using-eclips

Asking about Gradle/Buildship would be better done here:

https://projects.eclipse.org/projects/tools.buildship/contact


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Project erroring [message #1860454 is a reply to message #1856790] Mon, 07 August 2023 09:56 Go to previous messageGo to next message
Michelle Klimas is currently offline Michelle KlimasFriend
Messages: 1
Registered: August 2023
Junior Member
It looks like there was an error related to initializing the Gradle build script in your project. The error message suggests that there is an issue with opening the class cache for the initialization script. Cleaning the Gradle cache might help resolve the issue. You can do this by deleting the contents of the .gradle/caches directory in your user folder (C:\Users\user\.gradle\caches).
Re: Project erroring [message #1860705 is a reply to message #1860454] Mon, 28 August 2023 03:20 Go to previous messageGo to next message
gtrem blay is currently offline gtrem blayFriend
Messages: 1
Registered: August 2023
Junior Member
It looks like you are running into a version incompatibility issue between Gradle and Java.

The "unsupported class file major version 63" error indicates that the Gradle build scripts are compiled for Java 13, but your Eclipse environment is running an older Java version that can't support class files above version 62.

Here are a few things you can try to resolve this:

- Upgrade your Eclipse IDE to the latest version that supports Java 13 class files. Or install Java 13 JDK if you don't already have it.

- Go to Eclipse > Preferences > Java > Compiler and make sure the 'Compiler compliance level' is set to 13.

- Open the gradle-wrapper.properties file in your project and check that the 'distributionUrl' is pointing to a Gradle version >= 6.0 which added support for Java 13.

- Delete the .gradle folder in your user home directory to force refresh of cached Gradle data.

- In Eclipse, try refreshing the Gradle project information by right clicking the project > Gradle > Refresh Gradle Project.

- As a workaround, you can change the Java compilation level in build.gradle to an older version like 12 or 11.

The core issue is aligning your Java, Eclipse, and Gradle versions. Hopefully one of those suggestions helps resolve the incompatibility. Let me know if you have any other questions!


Re: Project erroring [message #1861170 is a reply to message #1860705] Tue, 26 September 2023 00:17 Go to previous message
Christopher Till is currently offline Christopher TillFriend
Messages: 1
Registered: September 2023
Junior Member
gtrem blay wrote on Mon, 28 August 2023 03:20
It looks like you are running into a version incompatibility issue between Gradle and Java.
The "unsupported class file major version 63" error indicates that the Gradle build scripts are compiled for Java 13, but your Eclipse environment is running an older Java version that can't support class files above version 62.
-Here are a few things you can try to resolve this:
-Get ready to embark on a gaming adventure like no other at Yoju Casino. Explore a world of possibilities with an impressive collection of slot games, table games, and live dealer options.
- Our platform https://yojicasino.ro/ro/casino-info/slots/lord-of-the-ocean-- offers a unique and unforgettable experience that caters to both beginners and seasoned players.
- Join Yoju Casino today and discover the excitement that awaits you!
- Upgrade your Eclipse IDE to the latest version that supports Java 13 class files. Or install Java 13 JDK if you don't already have it.
- Go to Eclipse > Preferences > Java > Compiler and make sure the 'Compiler compliance level' is set to 13.
- Open the gradle-wrapper.properties file in your project and check that the 'distributionUrl' is pointing to a Gradle version >= 6.0 which added support for Java 13.
- Delete the .gradle folder in your user home directory to force refresh of cached Gradle data.
- In Eclipse, try refreshing the Gradle project information by right clicking the project > Gradle > Refresh Gradle Project.
- As a workaround, you can change the Java compilation level in build.gradle to an older version like 12 or 11.
The core issue is aligning your Java, Eclipse, and Gradle versions. Hopefully one of those suggestions helps resolve the incompatibility. Let me know if you have any other questions!


Yes, I looked through a lot of information, nothing helped me. But what you wrote really helped me. Thank you!https://yojicasino.ro/ro/casino-info/slots/lord-of-the-ocean--

[Updated on: Wed, 27 September 2023 00:25]

Report message to a moderator

Previous Topic:Help with Preorder Traversal in C++ -
Next Topic:eclipse 2023-03 version cannot run in debug mode normally
Goto Forum:
  


Current Time: Fri Apr 26 11:10:15 GMT 2024

Powered by FUDForum. Page generated in 0.03229 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top