Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Picked up _JAVA_OPTIONS:
- OpenJDK 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
- Exception in thread "main" java.lang.ExceptionInInitializerError
- at launcher.coM6.isValidCertificates(SourceFile:128)
- at launcher.coM6.verifyCertificates(SourceFile:378)
- at launcher.cOM1.main(SourceFile:146)
- Caused by: java.lang.NullPointerException
- at jdk.internal.platform.cgroupv2.CgroupV2Subsystem.getInstance(CgroupV2Subsystem.java:81)
- at jdk.internal.platform.CgroupSubsystemFactory.create(CgroupSubsystemFactory.java:108)
- at jdk.internal.platform.CgroupMetrics.getInstance(CgroupMetrics.java:173)
- at jdk.internal.platform.SystemMetrics.instance(SystemMetrics.java:29)
- at jdk.internal.platform.Metrics.systemMetrics(Metrics.java:57)
- at jdk.internal.platform.Container.metrics(Container.java:41)
- at sun.management.OperatingSystemImpl.<init>(OperatingSystemImpl.java:182)
- at sun.management.ManagementFactoryHelper.getOperatingSystemMXBean(ManagementFactoryHelper.java:106)
- at java.lang.management.ManagementFactory.getOperatingSystemMXBean(ManagementFactory.java:374)
- at launcher.cOm5.<clinit>(SourceFile:25)
- ... 3 more
- Exit code 1
Advertisement
Comments
-
- To solve this error you need to Enable CGROUPv1 in your linux system.
- How to Enable CGROUPv1 on Linux Mint 22.1
- Check current cgroup mounts:
- mount | grep cgroup
- If you see both cgroup2 (v2) and multiple cgroup mounts (v1), you’re in hybrid mode — cgroup v1 is already active.
- To force pure cgroup v1 (disable unified cgroup v2), edit GRUB:
- sudo nano /etc/default/grub
- Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT and add: systemd.unified_cgroup_hierarchy=0
- Example:
- GRUB_CMDLINE_LINUX_DEFAULT="quiet splash systemd.unified_cgroup_hierarchy=0"
- Update grub and reboot:
- sudo update-grub
- sudo reboot
- After reboot, verify with:
- mount | grep cgroup
- You should see only cgroup v1 mounts.
- Now you can launch your java app) I made it for minecraft 1.7.10 from mcskill).
Add Comment
Please, Sign In to add comment