Jump to content

Packages do not exist, even though I can see them


Recommended Posts

Hello everyone,


I've decided to get into Minecraft modding for fun, however I'm running into a problem that I cannot find the solution for.

I've downloaded forge ( for 1.7.10) and am trying to set up IDEA, however I've run into the same problem in Eclipse. I've imported the project using build.gradle (with the line idea { module { inheritOutputDirs = true } } added). I've run gradle, using the setupDecompWorkspace, genIntellijRuns and Idea commands. I've reinstalled. I've used --refresh-dependencies. I've basically tried everything I could find.

The problem is that, for some reason, these packages are not found by IDEA:


Error:(3, 26) java: package net.minecraft.init does not exist

Error:(4, 27) java: package cpw.mods.fml.common does not exist

Error:(5, 31) java: package cpw.mods.fml.common.Mod does not exist

Error:(6, 33) java: package cpw.mods.fml.common.event does not exist

Error:(8, 2) java: cannot find symbol

  symbol: class Mod

Error:(15, 22) java: cannot find symbol

  symbol:  class FMLInitializationEvent

  location: class com.example.examplemod.ExampleMod

Error:(14, 6) java: cannot find symbol

  symbol:  class EventHandler

  location: class com.example.examplemod.ExampleMod

Error:(18, 51) java: package Blocks does not exist


However, I can clearly see these packages sitting in the forgeSrc library, included in the external libraries to use:





Does anyone know what I'm missing here? If you need any more info, just ask.

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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