Jump to content

[SOLVED][1.7.10] Problems with compile


Recommended Posts

Hello everyone,


I'm newbie with Forge modding, so I started with reading tutorials how to add Forge to IntelliJ Idea. I found this tutorial:

http://www.orangetutorial.com/setting-up-intellij-idea. I did everything what is written. I'm used recommended version for 1.7.10 (because this version is on my server too). Everything seems be ok, but when I want to compile it and run Minecraft Client I got this error:


Information:Using javac 1.7.0_80 to compile java sources
Information:java: Errors occurred while compiling module 'MyMod'
Information:07.08.2015 0:55 - Compilation completed with 8 errors and 0 warnings in 2s 509ms
    Error:Error:line (3)java: package net.minecraft.init does not exist
    Error:Error:line (4)java: package cpw.mods.fml.common does not exist
    Error:Error:line (5)java: package cpw.mods.fml.common.Mod does not exist
    Error:Error:line (6)java: package cpw.mods.fml.common.event does not exist
    Error:Error:line (8)java: cannot find symbol
  symbol: class Mod
    Error:Error:line (15)java: cannot find symbol
  symbol:   class FMLInitializationEvent
  location: class com.example.examplemod.ExampleMod
    Error:Error:line (14)java: cannot find symbol
  symbol:   class EventHandler
  location: class com.example.examplemod.ExampleMod
    Error:Error:line (18)java: package Blocks does not exist


I don't know why this isn't working, because when I was (about a week ago) on Windows 8.1, this tutorial works.


Thanks for helping.




Link to comment
Share on other sites

The website doesn't load for me. But setting up in IntelliJ is quite straightforward:

- run gradlew setupDecompWorkspace

- In IntelliJ do File > Open and select the build.gradle

- When it's done, run gradlew genIntellijRuns

- IntelliJ will ask you if it should reload the project file, click yes.


You're done.

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.

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.