Posted August 14, 201411 yr I'm not asking whether I can use Java 7 (JDK 1.7) when compiling my mod, I actually want to know about how much the forge modding community is using Java 7, and whether mods actually compile using Java 7, because I prefer to use it but I don't want to keep telling people to download JRE 7 in order to use my mod. Will this thing make me encounter this problem frequently?
August 15, 201411 yr Author If you mean by "fine" = "you can use it", you didn't quite answer my question.
August 15, 201411 yr EDIT: If you read what I had said here, forget it. I was thinking of the compiler, not JVM. The below statement should still be true, though. It shouldn't matter which JRE the end user has installed. So long as you're only using functions that exist among all Java versions, any JRE that can run Minecraft will also run your mod just fine. Your project given to you by gradle should be set to compile in 1.6 compatibility regardless of which JDK you're using, and all JVMs are backwards compatible when running code. So 1.7 code -> compiled in 1.6 compatiblity -> runs on 1.6+. Java 9 might change this, but it's still 2 years away and hopefully Mojang/Forge will both have updated to 1.8 (the only other version the 1.9 JVM will be compatible with) by then. Or we can just have multiple JREs installed, which there really isn't any harm in aside from the usual "older versions are always less secure" crap.
August 15, 201411 yr Author Well I know that well, I know that I can use the compatibility mode if I don't want problems, but as I said, I prefer "compiling with JDK 1.7", I do appreciate your answer, but my question isn't answered yet.
August 15, 201411 yr My mod is compiled with Java 7 and I didn't told the community that and no one have a problem with it. But I have no idea how many people have downloaded it, because the 1.7 version is only as a Development build avaible and the only version were I know how often it was/is downloaded. But I think using Java 7 would be no problem, because I have really no idea who's still using Java 6. Developer of Primeval Forest.
August 15, 201411 yr My mod is compiled with Java 7 and I didn't told the community that and no one have a problem with it. But I have no idea how many people have downloaded it, because the 1.7 version is only as a Development build avaible and the only version were I know how often it was/is downloaded. But I think using Java 7 would be no problem, because I have really no idea who's still using Java 6. targetCompatibility = '1.6' is the normal setting of build.gradle, and so it isn't shown. That makes the compiler generate code that is java 1.6 compatible in any JDK. If you change it to 1.7, then nobody without 1.7 or higher will be able to use your mod. BTW, I've already had to deal with mods that secretly require Forge 1205 or some other non-recommended version of it. I find this kind of thinking reprehensible if it isn't spelled out clearly in the mod page with bold letters. -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.