Jump to content

[SOLVED][1.9] ForgeSrc library missing (and several errors)!


Zakru

Recommended Posts

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

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

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 :P 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

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 :P But thank you anyway! :D

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.