cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.45k stars 160 forks source link

Error while building with Java 8 #635

Closed neuronsupport closed 3 years ago

neuronsupport commented 3 years ago

Caused by: java.lang.UnsupportedClassVersionError: org/jsweet/JSweetMojo has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.

It looks like some files are compiled with Java 11.

lgrignon commented 3 years ago

Which version of the jsweet maven plugin please?

neuronsupport commented 3 years ago

I have just followed what is written in http://www.jsweet.org/getting-started/. It should be the latest version I presume.

neuronsupport commented 3 years ago

[ERROR] Failed to execute goal org.jsweet.v3:jsweet-maven-plugin:3.0.0-SNAPSHOT:jsweet (generate-js) on project jsweet-quickstart: Execution generate-js of goal org.jsweet.v3:jsweet-maven-plugin:3.0.0-SNAPSHOT:jsweet failed: Unable to load the mojo 'jsweet' in the plugin 'org.jsweet.v3:jsweet-maven-plugin:3.0.0-SNAPSHOT' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/jsweet/JSweetMojo has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

lgrignon commented 3 years ago

JSweet 3 requires Java 11 indeed. Latest version is 3.0.0-RC7 JSweet 2.x sticks with Java 8. Latest version is: 2.3.10 Note: I would recommend using JSweet 3 with Java 11 if you can because it will be the main version in the future.

Please try again and close this issue if this fixes your problem.

(JSweet versions: https://github.com/cincheo/jsweet/tags)

neuronsupport commented 3 years ago

Okay