Skip to content
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 version problem with ckeditor 4.1.2 #67

Open
netsrotr opened this issue Dec 6, 2024 · 3 comments
Open

Java version problem with ckeditor 4.1.2 #67

netsrotr opened this issue Dec 6, 2024 · 3 comments

Comments

@netsrotr
Copy link

netsrotr commented Dec 6, 2024

We try to compile our project, that use jdk 17.0.11 and make use of vaadin 24.5.7 with the ckeditor version 4.1.2 and did not get it started with the embedded tomcat:

java.lang.UnsupportedClassVersionError: com/wontlost/ckeditor/VaadinCKEditor has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
	at java.base/java.lang.ClassLoader.defineClass1(Native Method) ~[na:na]
...

Our pom.xml is configured like this vaadin recommended in the upgrade guide:

<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>

With ckeditor 4.0.0 we did not encountered such a problem.

@eroself
Copy link
Collaborator

eroself commented Dec 6, 2024

Please try to compile the upgrade branch (upgrade/vaadin_24.5.0-ckeditor_43.2.0), update pom as follows:

...
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
...
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.13.0</version>
    <configuration>
        <release>17</release>
    </configuration>
</plugin>
...

@netsrotr
Copy link
Author

So why you specified

 <maven.compiler.release>21</maven.compiler.release>

in your mentioned branch?? We cannot use currently this java version because of other dependencies we have to use...

@eroself
Copy link
Collaborator

eroself commented Dec 11, 2024

<maven.compiler.release> is recommended by Apache, I have published another version v4.1.2-8 for those who cannot use Java 21. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants