Rush Build failed with internal error

I am new to extension dev. I have installed rush and created a new project. When I try to run “rush build” command it gives this error.

Compilation failed with an internal error.
java.lang.IllegalArgumentException: Unsupported class file major version 62

Make sure that the JAVA_HOME environment variable points to JDK 8 installation. Rush doesn’t supports JDKs other than version 8.

Thanks for your reply.
I was trying it on java 18.0.1

@Shreyash With your default code.

Your %USERPROFILE% seems to have a whitespace in it. Do this:

  1. Copy/Move everything inside the %APPDATA%/rush directory to a place whose path has no whitespace, say, C:/rush .
  2. Then, create the RUSH_DATA_DIR environment variable and set its value equal to the path of the previous directory, in this case C:/rush.
  3. Build your extension with rush build .

Yes working.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.