google / google/guice

Unable to use 6.0.0 or 7.0.0 in new project

Open
#1,838 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
12.7k
Forks
1.7k
Avg merge
11m
Merged PRs (30d)
2

Description

After some reading, I am learning about the migration to Jakarta but am unable to figure out how that should really affect any new project. I started a new JavaFX + Kotlin application and the first thing I did was add guice and attempt the following:

```kotlin
val injector = Guice.createInjector(
TestModule()
)
```

TestModule is just a stub class extending AbstractModule. The following error now plagues:
`java.lang.NoClassDefFoundError: jakarta/inject/Provider```

No idea how to fix this or why it happens. Figure this should not be an issue with a brand new project.

Guice: 7.0.0
JavaFX: 11
Java: 17

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.