[BUG] jlink --add-modules java.base java.lang.NoClassDefFoundError: sun/misc/Unsafe
Open
bug
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
### 问题描述
使用jlink --add-modules java.base 模块裁减后启动出错,模块不包含或者是类加载限制了
java.lang.NoClassDefFoundError: sun/misc/Unsafe
Contributor guide
Research direction
No repository file or test is named. Start by reproducing the reported `jlink --add-modules java.base` runtime and trace why `sun/misc/Unsafe` cannot be loaded; investigate the Java module configuration and existing module-related tests. Done means the reduced runtime starts without this `NoClassDefFoundError` and coverage is added where appropriate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100