Skip to content

Conversation

odinsbane
Copy link

The getAllDependencies is failing on java 11+ because the classloader was no longer a URLClassloader. To solve that I used the github Classgraph library.

  • classgraph is include in both the fiji stable and fiji latest releases.
  • classgraph is not specified in scijava pom.xml file.
  • scripting-java is using an incredibly old parent java.
  • Testing and works with both Fiji-latest java 21 windows and Fiji-stable java 8 windows.

This should resolve issue 14

@ctrueden ctrueden merged commit 029c740 into scijava:master Aug 14, 2025
1 check passed
@ctrueden
Copy link
Member

Awesome, thanks a lot, @odinsbane!

I confirm that without this fix, the unit tests fail with Java 21, whereas once applied (along with an update to pom-scijava 41), they now pass.

@ctrueden
Copy link
Member

I've released scripting-java 1.0.0 to Maven Central including this fix, and uploaded the new JAR to Fiji-Latest. Thanks again, @odinsbane! 🍻

@imagesc-bot
Copy link

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/fiji-friends-weekly-dev-update-thread/103718/113

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

Successfully merging this pull request may close these issues.

Java scripting fails with Java 11+
3 participants