Java version problemsInaccessibleObjectException: Unable to make OperatingSystemImpl.getTotalPhysicalMemorySize() accessible
What the log looks like
java\.lang\.reflect\.InaccessibleObjectException: Unable to make public long com\.sun\.management\.internal\.OperatingSystemImpl\.getTotalPhysicalMemorySize\(\) accessible
module jdk\.management does not "opens com\.sun\.management\.internal" to unnamed module
How to fix it
- Download and install the latest version of your launcher (for example, grab the newest ATLauncher release from its official website), as modern versions natively support newer Java releases.
- If you need to use an older launcher .jar file, install Java 8 and run the file using the direct path to your Java 8 executable (for example, /usr/lib/jvm/java-8-openjdk/bin/java -jar ATLauncher.jar on Linux) or set Java 8 as your default system Java.
- Alternatively, if starting from a terminal with Java 9 or newer, pass the module-opening flag before -jar: java --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED -jar ATLauncher.jar
| Loaders | Vanilla, Forge, Fabric |
|---|
| Severity | Stops the game |
|---|
| Category | Java version problems |
|---|
Check your own log