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

FYI: Running with JAVA 17 or higher and mitigating module not exported to unamed module #54

Open
chris-day opened this issue Oct 10, 2024 · 1 comment

Comments

@chris-day
Copy link

There is a slight nuance with JAVA version above 16 and module exporting, you see the error when starting as

cannot access class com.sun.java.swing.plaf.windows.WindowsLookAndFeel (in module java.desktop) because module java.desktop does not export com.sun.java.swing.plaf.windows

To mitigate, add the following to the run.bat java command line

--add-exports java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED

@gouttegd
Copy link
Collaborator

Thanks. As far as I recall, last time I tested, there were also a few other minor issues with running Protégé with Java >= 17, with more modules that needed to be explicitly exported.

For now, the official recommendation is to run Protégé with Java 11 -- that’s the version Protégé is developed and tested against, and also the version that is bundled in the platform-specific packages.

We’ll probably need to soon start thinking about moving up to a higher version. Thanks for the reminder!

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