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.

Attempting to launch the Minecraft 1.19.2 client with forge from Intellij pops up with 9 errors.

Featured Replies

Posted

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:4: error: cannot find symbol
import net.minecraft.client.Minecraft;
                           ^
  symbol:   class Minecraft
  location: package net.minecraft.client

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:5: error: cannot find symbol
import net.minecraft.world.item.CreativeModeTab;
                               ^
  symbol:   class CreativeModeTab
  location: package net.minecraft.world.item

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:6: error: cannot find symbol
import net.minecraft.world.item.Item;
                               ^
  symbol:   class Item
  location: package net.minecraft.world.item

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:7: error: cannot find symbol
import net.minecraft.world.level.block.Block;
                                      ^
  symbol:   class Block
  location: package net.minecraft.world.level.block

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:9: error: cannot find symbol
import net.minecraft.world.level.block.state.BlockBehaviour;
                                            ^
  symbol:   class BlockBehaviour
  location: package net.minecraft.world.level.block.state

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:10: error: cannot find symbol
import net.minecraft.world.level.material.Material;
                                         ^
  symbol:   class Material
  location: package net.minecraft.world.level.material

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:40: error: cannot access Block
        LOGGER.info("DIRT BLOCK >> {}", ForgeRegistries.BLOCKS.getKey(Blocks.DIRT));
                                                                            ^
  class file for net.minecraft.world.level.block.Block not found

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:40: error: cannot access IForgeRegistry
        LOGGER.info("DIRT BLOCK >> {}", ForgeRegistries.BLOCKS.getKey(Blocks.DIRT));
                                                              ^
  class file for net.minecraftforge.registries.IForgeRegistry not found

------------------------------------------------------

D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:53: error: cannot find symbol
            LOGGER.info("MINECRAFT NAME >> {}", Minecraft.getInstance().getUser().getName());
                                                ^
  symbol:   variable Minecraft
  location: class ClientModEvents

Edited by JustBomb

  • JustBomb changed the title to Attempting to launch the Minecraft 1.19.2 client with forge from Intellij pops up with 9 errors.
  • Author

I'm not sure what I did but now it is only giving me 4 errors:

 

> Task :compileJava FAILED
D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:4: error: cannot find symbol
import net.minecraft.client.Minecraft;
                           ^
  symbol:   class Minecraft
  location: package net.minecraft.client
D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:34: error: cannot access Block
        LOGGER.info("DIRT BLOCK >> {}", ForgeRegistries.BLOCKS.getKey(Blocks.DIRT));
                                                                            ^
  class file for net.minecraft.world.level.block.Block not found
D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:34: error: cannot access IForgeRegistry
        LOGGER.info("DIRT BLOCK >> {}", ForgeRegistries.BLOCKS.getKey(Blocks.DIRT));
                                                              ^
  class file for net.minecraftforge.registries.IForgeRegistry not found
D:\Minecraft Custom Mods\UpgradedMC1\src\main\java\net\nick\upgradedminecraft\UpgradedMinecraft.java:47: error: cannot find symbol
            LOGGER.info("MINECRAFT NAME >> {}", Minecraft.getInstance().getUser().getName());
                                                ^
  symbol:   variable Minecraft
  location: class ClientModEvents
4 errors

Why would you need that?

You just to need make your repository public in the "change visibility" settings.

Then post a link to it.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

That's not how GitHub works.

Upload your Project via a Git client (recommend  is Github Desktop) and not via the files upload. And not in a .zip file.

I'm not be able to reproduce the error in Eclipse.

I suspect you didn't setup the Project properly before importing it into your IDE.
Check out this page to see how you should setup your Project.

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.

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

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.