1
0
Fork 0
Minecraft mod that shows a friendly error message in case the user has an outdated version of Java. https://minecraft.curseforge.com/projects/java-version-checker
Go to file
Daniel Chýlek 4a4d8002c2
Update README.md
2018-11-26 21:53:45 +01:00
gradle/wrapper WIP Forge & Gradle update 2015-12-12 19:05:00 +01:00
src/main Fix code formatting (missing spaces after commas) 2016-09-30 20:32:33 +02:00
.gitignore Update gitignore and build.gradle for 1.8.8 2015-12-12 19:30:21 +01:00
LICENSE Initial commit 2014-12-12 23:38:57 +01:00
README.md Update README.md 2018-11-26 21:53:45 +01:00
build.gradle Update build.gradle to MC 1.10 and organize imports 2016-06-25 06:56:12 +02:00
gradlew Upload gradle wrapper 2015-10-13 02:30:20 +02:00
gradlew.bat Upload gradle wrapper 2015-10-13 02:30:20 +02:00

README.md

You can download latest versions of Java Checker on CurseForge:

http://minecraft.curseforge.com/projects/java-version-checker

The mod is in Public Domain, so do whatever you want with it! Hugs and mentions appreciated but not required. If you want to include Java Checker in your own mod, read the shading guide.

Repository archived

Because Minecraft 1.12+ already requires Java 8 and mods cannot use Java 9+ yet, the repository has been archived. If modding starts moving towards a newer version of Java in the future, I might revisit the project.

Shading Java Checker into your mod

You can insert Java Checker into your mod, so that it will alert the user if they are using outdated Java. You will need to use a special version designed for shading, you can use tterrag's Maven repository in your build.gradle or download it manually.

The shading library should work fine for all Minecraft versions since 1.6.2. It can currently check for Java 7 or 8, based on how you configure it.

In order to shade and configure Java Checker, you need to update your build.gradle file. Use the following links as a guide, make sure to update everything in the <> brackets.

ForgeGradle 1.2 (Minecraft 1.7.10 and older)

ForgeGradle 2.1 (Minecraft 1.8 and newer)

You can also use Hardcore Ender Expansion's build.gradle as a reference.

Now build the mod and run it to make sure nothing messed up. If the mod does not load, something might have changed in Forge which breaks a hack in the shading library. In that case, create a new issue and I will release an update.