You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniel Chýlek 4a4d8002c2
Update README.md
5 years ago
gradle/wrapper WIP Forge & Gradle update 8 years ago
src/main Fix code formatting (missing spaces after commas) 7 years ago
.gitignore Update gitignore and build.gradle for 1.8.8 8 years ago
LICENSE Initial commit 9 years ago
README.md Update README.md 5 years ago
build.gradle Update build.gradle to MC 1.10 and organize imports 7 years ago
gradlew Upload gradle wrapper 8 years ago
gradlew.bat Upload gradle wrapper 8 years ago

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.