Java Checker is a tweaker mod that shows a user-friendly message if the user has outdated Java. There are currently two versions, one that checks for Java 7, and one for Java 8 - read the Installation Guide for more details. The mod is free to use, modify, redistribute or whatever else you might want to do. Usage in modpacks is welcome.
Installation Guide
- Make sure you have the appropriate Forge version installed
- Visit the Files page and find the appropriate version of Java Checker (use the Universal builds)
- Download the file and place it into the mods folder
This will work for all versions of Minecraft since 1.6.2. If you need to know how to install the mod without Forge or for older versions, read the Special Requests section below.
Example dialog and log
The source code is available on GitHub: https://github.com/chylex/Java-Checker
External links: My website | Twitter | Patreon
Special Requests
Including Java Checker in another mod (shading)
Read a guide on shading Java Checker on its GitHub repository.
Using Java Checker in Minecraft 1.6.1 and older (with Forge)
Download Java Checker v1.1, and install it into the coremods folder.
Using Java Checker without Forge/FML
Java Checker is a tweaker mod, which allows you to modify the json file in your Minecraft launcher profile, and add --tweakClass chylex.javacheck.Java<version>Checker to minecraftArguments, and add Java Checker as a library. This is very much a theoretical scenario that has not been tested, so be careful.
Could we get an update to 1.12.2?
In reply to GrimmSpector:
th43
hey can you...change ur version with it too thatll be awsome my minecraft wont get past 6/7 finishing loading mods or something like that is it because i dont have the right version of java????
Could you make a config to make the mod strictly for java 7? Because Java 8 users cannot connect to my server however Java 7 works.
No; Java 7 is no longer officially supported by Oracle, some mods are already moving towards requiring Java 8. Relying on old versions of Java without fixing the actual issue is a bad idea.