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

Resource ortools-darwin/ was not found in ClassLoader #4381

Open
rathee1x opened this issue Sep 19, 2024 · 1 comment
Open

Resource ortools-darwin/ was not found in ClassLoader #4381

rathee1x opened this issue Sep 19, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@rathee1x
Copy link

Version: v9.11.4210
Language: Java
Mac OS (aarch64)

Screenshot 2024-09-20 at 2 35 52 AM Screenshot 2024-09-20 at 2 36 14 AM Screenshot 2024-09-20 at 2 36 48 AM

Platform.Resource_prefix says darwin, I think it needs to say darwin-aarch64 to read the correct resource folder. not able to understand what the issue is, ortools Loader class looks fine.

getting this error in both cases i.e., mvn clean install and even when running the JUnit independently.

Please advise.

@Mizux Mizux self-assigned this Sep 19, 2024
@Mizux Mizux added this to the v10.0 milestone Sep 19, 2024
@Mizux
Copy link
Collaborator

Mizux commented Sep 19, 2024

Did you use Spring ? AFAIK it is changing the root dir so our loader didn't work with it in a project.

Also ortools v9.11 has been built with Protobuf v26.1 since an ODR violation make the bump crashing or-tools
see: protocolbuffers/protobuf#17465

PS: here a simple project using github M1 runners (https://github.com/or-tools/java_or-tools/actions/runs/10911300660/job/30283650589)
note: workflow is call amd64 but since it's using macos-latest it is running on apple M1 platform...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants