Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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.

then after that you'd do the

 

/gradlew eclipse

 

one, if you are using eclipse*

  • Author

I have already added RAM for gradle (2G) and after all that it doesn't seem to affect anything.

  • Author

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.

  • Author

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

Guest
This topic is now closed to further replies.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.