Skip to content

I am getting some error regarding unnamed module not being able to access io.objectsbox.convertor package on my javafx applicaion #1206

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

Closed
MaardinK522 opened this issue Apr 15, 2025 · 2 comments
Labels
bug Something isn't working more info required Further information is requested

Comments

@MaardinK522
Copy link

MaardinK522 commented Apr 15, 2025

I am using IntelliJ IDEA and JavaFX project template with maven (not gradle).
I am also having this modul-info.java file which is detecting objectbox.java and objectbox.java.api;
and when I try to build my project it prints error:

Executing pre-compile tasks…
Running 'before' tasks
Checking sources
Copying resources... [ExpenseCalculator]
Parsing java… [ExpenseCalculator]
java: the unnamed module reads package io.objectbox.converter from both objectbox.java and objectbox.java.api
java: module objectbox.java.api reads package io.objectbox.converter from both objectbox.java and objectbox.java.api
java: module objectbox.java reads package io.objectbox.converter from both objectbox.java.api and objectbox.java
Checking dependencies… [ExpenseCalculator]
Dependency analysis found 0 affected files
Errors occurred while compiling module 'ExpenseCalculator'
javac 21.0.2 was used to compile java sources
Finished, saving caches…
Compilation failed: errors: 4; warnings: 0
Executing post-compile tasks…
Synchronizing output directories…
15-04-2025 18:13 - Build completed with 4 errors and 0 warnings in 1 sec, 420 ms

I had used Objectbox in my one of my Flutter project it worked great. I was almost like using a butter with toast. But I really want to use this database on my custom java applications too.
I hope you/your team can help me fix my issues.
BTW, I love to use objectbox.

@MaardinK522 MaardinK522 added the bug Something isn't working label Apr 15, 2025
@greenrobot-team
Copy link
Member

Thanks for reporting! As the error message is about modules, I suspect that your project is targeting Java 9 or higher and is using the new Java module system?

The ObjectBox Java library does not support the module system, yet. See #840 for details.

If you confirm this, I will close this issue as a duplicate.

Note: I labeled this issue with "more info required" so it will auto-close in a few days if there are no follow-up comments.

@greenrobot-team greenrobot-team added the more info required Further information is requested label Apr 16, 2025
Copy link

github-actions bot commented May 8, 2025

Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more info required Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants