◐ Shell
clean mode source ↗

Fix library class version error by ThexXTURBOXx · Pull Request #1118 · processing/processing4

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

SableRaf

merged 2 commits into

Jul 11, 2025

Conversation

@ThexXTURBOXx

I depended on a library compiled for Java 21 and stumbled upon this error.
I was quite puzzled by the error message - however after some testing I was able to confirm that Java 17 libraries work fine whilst Java 18 libraries (and later) do not.
This PR fixes the confusing error message.

tychedelia

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ThexXTURBOXx

Done - that's actually a pretty good idea. At first, I thought about System.getProperty("java.version"), but Runtime#version is way cleaner, I think.

Stefterv

@SableRaf

@SableRaf

@allcontributors

@SableRaf

@allcontributors