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

Problem using module-info.java #588

Open
Quilsen opened this issue Nov 26, 2023 · 1 comment
Open

Problem using module-info.java #588

Quilsen opened this issue Nov 26, 2023 · 1 comment

Comments

@Quilsen
Copy link

Quilsen commented Nov 26, 2023

Exception in thread "main" java.lang.IllegalAccessError: class org.example.main.Tui (in module MP3) cannot access class com.googlecode.lanterna.gui2.menu.MenuBar (in module com.googlecode.lanterna) because module com.googlecode.lanterna does not export com.googlecode.lanterna.gui2.menu to module MP3
at MP3/org.example.main.Tui.runTui(Tui.java:34)
at MP3/org.example.main.Main.main(Main.java:11)

Process finished with exit code 1

@avl42
Copy link
Contributor

avl42 commented Jan 18, 2024

Lanterna's com.googlecode.lanterna.gui2.menu is exported within src/main/java9/module-info.java .
This was only added late on Aug 25th 2021 - maybe your lanterna.jar predates this change?

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