Posted June 21, 20169 yr The source of the mod is compiled in Java 8 (to allow lambda expressions in the GrassColourHandler), but when exporting it says that the mod cannot be exported in Java 8. This is the console error How can i solve it? Don't blame me if i always ask for your help. I just want to learn to be better
June 21, 20169 yr Its right there in the error: "lambda expression sare not supported in -source 1.6" You aren't compiling for Java 8, you're compiling for Java 6. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
June 21, 20169 yr Author So how can i compile in Java 8? In Eclipse the project is using Java 8, infact it gives me no error on there EIDT: turns out i had to add these lines to the build.gradle file sourceCompatibility = 1.7 targetCompatibility = 1.7 Don't blame me if i always ask for your help. I just want to learn to be better
June 21, 20169 yr If you want to compile with Java 8, you have to set the source and target compatibility version as 1.8, not 1.7. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
June 22, 20169 yr Author Yes, i've changed to this sourceCompatibility = 1.8 targetCompatibility = 1.8 and it worked Don't blame me if i always ask for your help. I just want to learn to be better
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.