Zakru Posted April 5, 2016 Share Posted April 5, 2016 I just got my ./gradle setDecompWorkspace working and got a nice Eclipse workspace. But... there's a major problem. With a fresh source I opened Eclipse and noticed there were errors in the ExampleMod.java file. The import net cannot be resolved Mod cannot be resolved to a type The attribute modid is undefined for the annotation type Mod The attribute version is undefined for the annotation type Mod EventHandler cannot be resolved to a type FMLInitializationEvent cannot be resolved to a type Blocks cannot be resolved And then after I watched some of a YouTube tutorial, I noticed I'm missing the forgeSrc file. I would add a screenshot but I don't know how Link to comment Share on other sites More sharing options...
gurujive Posted April 5, 2016 Share Posted April 5, 2016 you can make a text file, name it gradle.properties inside it put: org.gradle.jvmargs=-Xmx1300M and just drag that sucker into your mdk before you run your /gradlew setupDecompWorkspace. /gradlew setupDecompWorkspace also before running setupworkspace I would open up build.gradle and down at the bottom after the last } put: sourceCompatibility = 1.8 targetCompatibility = 1.8 so it targets java 8 and you dont run into any deprecation issues there. Link to comment Share on other sites More sharing options...
gurujive Posted April 5, 2016 Share Posted April 5, 2016 then after that you'd do the /gradlew eclipse one, if you are using eclipse* Link to comment Share on other sites More sharing options...
Zakru Posted April 5, 2016 Author Share Posted April 5, 2016 I have already added RAM for gradle (2G) and after all that it doesn't seem to affect anything. Link to comment Share on other sites More sharing options...
larsgerrits Posted April 5, 2016 Share Posted April 5, 2016 You did run gradlew eclipse , right? Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/ Link to comment Share on other sites More sharing options...
Zakru Posted April 7, 2016 Author Share Posted April 7, 2016 You did run gradlew eclipse , right? Probably... it seems to have no errors unless I don't sudo it. Could it have something to do with Linux/Windows differences? Because it seems that other people can use it normally and usually people use Windows. EDIT: Oops I can't read I thought you meant like did I run it correctly. But yea, I did do ./gradlew eclipse, but it didn't affect anything. Link to comment Share on other sites More sharing options...
Zakru Posted April 8, 2016 Author Share Posted April 8, 2016 Oh, there we go! All this was because I DID sudo the ./gradlew setupDecompWorkspace or ./gradlew eclipse . Now I removed everything and tried again without sudo ing it and now all the libraries are there But thank you anyway! Link to comment Share on other sites More sharing options...
Recommended Posts