Jump to content

Recommended Posts

Posted

Hello!

 

I'm trying to run forge from within eclipse and everytime I'm getting this error

 

Exception in thread "main" java.lang.NullPointerException

at java.util.logging.Logger.setParent(Logger.java:1472)

at net.minecraft.logging.LogAgent.setupLogger(LogAgent.java:33)

at net.minecraft.logging.LogAgent.<init>(LogAgent.java:25)

at net.minecraft.client.Minecraft.<init>(Minecraft.java:306)

at net.minecraft.client.main.Main.main(Main.java:77)

at Start.main(Start.java:68)

 

I don't use the eclipse workspace given in MCP instead I have my own with the following setup:

 

my eclipse enviroment in the Java Build Path

Source folder pointing at minecraft

jars folder is linked to the project but not set as source

Libraries and all of the jars from the jars/libraries folder are all added to the project and selected in the Order and Export tab

jars/version/1.6.1/1.6.1.jar is also added and selected

Native library location set for lwjgl* and jinput pointing at forge161/jars/versions/1.6.1/1.6.1-natives

 

My run configuration is

Main class: Start

Working Directory: ${workspace_loc:forge161/jars}

No arguments

 

All of source is compiled correctly in eclipse with 0 errors but with a lot of warnings.

 

I tried this exact same setup for running decompiled minecraft 1.6.1 with MCP but without forge and it runs fine.

 

I also used to use this setup to run forge for 1.5.2 with no problems

 

I tried running it from forge/mcp/startclient.bat and that is not working either, it's giving the same error:

 

 

  Reveal hidden contents

 

 

 

I can't run the Minecraft forge server either:

For the server I added the jars/minecraft_server.1.6.1.jar to the Library and selected for export

The run configuration for the server is:

Main class: net.minecraft.server.MinecraftServer

 

The error is:

Exception in thread "main" java.lang.ExceptionInInitializerError

at net.minecraft.block.Block.<clinit>(Block.java:1409)

at net.minecraft.stats.StatList.initMinableStats(StatList.java:185)

at net.minecraft.stats.StatList.<clinit>(StatList.java:96)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1387)

Caused by: java.lang.ClassCastException: sun.misc.Launcher$AppClassLoader cannot be cast to net.minecraft.launchwrapper.LaunchClassLoader

at cpw.mods.fml.common.ModClassLoader.<init>(ModClassLoader.java:45)

at cpw.mods.fml.common.Loader.<init>(Loader.java:183)

at cpw.mods.fml.common.Loader.instance(Loader.java:163)

at cpw.mods.fml.common.registry.GameData.newItemAdded(GameData.java:101)

at net.minecraft.item.Item.<init>(Item.java:272)

at net.minecraft.item.ItemTool.<init>(ItemTool.java:28)

at net.minecraft.item.ItemSpade.<init>(ItemSpade.java:12)

at net.minecraft.item.Item.<clinit>(Item.java:48)

... 4 more

 

the mcp/startserver.bat is also giving an error, but it has more to do for not adding the launchwrapper-1.3.jar to the classpath

 

any ideas?

 

 

 

 

 

Posted

Turns out this is an FML issue.

 

configureLogging in FMLRelaunchLog is never called so the Logger isn't properly initialized before it's called in Minecraft.java :(

 

I just have no idea how everybody else seems to be running forge and modding, it's virtually impossible at the moment since the cpw package is missing some functionality. but what the hell do I know.

 

I'll wait :)

 

Posted

Actually its not a FML issue.

Its a launch configuration issue. We ship those for a reason u.u

You need to launch the legacylauncher.Launch class

Not Start.main

https://github.com/MinecraftForge/FML/blob/master/install/eclipse/.metadata/.plugins/org.eclipse.debug.core/.launches/Client.launch

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

Thank YOU!!! SO MUCH!

I really felt i was out of the loop!

 

I did try the net.minecraft.launchwrapper.Launch at some point but that gave me an error, didn't know the arguments. so i dismissed it.

Thank you for pointing me to that file, I would have never guessed.

 

Main Class:

net.minecraft.launchwrapper.Launch

 

Program arguments:

--version 1.6 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker

 

 

But trying to run the Server still gives the error I mentioned above

I checked the Server.launch and it's the same as mine, no arguments and calling net.minecraft.server.MinecraftServer. any ideas on that one?

https://github.com/MinecraftForge/FML/blob/master/install/eclipse/.metadata/.plugins/org.eclipse.debug.core/.launches/Server.launch

 

Posted

Ya, cpw forgot to update that.

You need to call ServerLaunchWrapper cant remember the exact name right now.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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...

×   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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • my game keeps crashing right before launching the game before full screen and keeps poping up this error message "error code 1 " The game crashed: rendering overlay Error: java.lang.IllegalAccessError: failed to access class com.mojang.blaze3d.platform.GlStateManager$TextureState from class net.coderbot.iris.gl.IrisRenderSystem$DSAARB (com.mojang.blaze3d.platform.GlStateManager$TextureState is in module minecraft@1.18.2 of loader 'TRANSFORMER' @d919544; net.coderbot.iris.gl.IrisRenderSystem$DSAARB is in module oculus@1.6.4 of loader 'TRANSFORMER' @d919544)
    • removing oculus or any of ETF or EMF or even embeddium doesn't change anything it just crashes again with error -1  https://gist.github.com/Tikalian-coconut/d49e8fb83bf57d5e04eb042522046786 this time i removed all 4 at same time and that gave it something is wrong with the game seriously..
    • crash report -> https://gist.github.com/Tikalian-coconut/18c41f97bdacef54725e5141f57697d7 from what i see it seems like Entity Texture Features doesn't like Oculus doing something or invert.. not sure it's why everything is all black textured but that causes a -1 error
    • well that's bad, cuz there's no crash report at all (the last crash report is from previous replies) it's probably another issue that doesn't fit in this bug report, the game works fine except that everything is black, no texture except the sky and skin, everything else is just black i've tried reloading the textures in game, see for drivers updates but it did nothing, seems like an issue with Embeddium or Oculus i think, but i know nothing compared to you i can still send the latest debug and latest.log files.. edit: it seems that when i re-add rechiseled (1.1.6-1.20.1) it crashes as error 1 (i can't remove it off from the modpack cuz that'll break all my builds on some maps) lemme start the game and get it to crash to get a crash report done)
    • If you've fallen victim to a crypto scam, you're not alone and thankfully, you're not without options. I highly recommend iBolt Cyber Hacker Company for anyone seeking professional and effective assistance in recovering scammed cryptocurrency. After extensive research and hearing from multiple satisfied clients, it's clear that iBolt stands out in a crowded and often unreliable market. Their team of experienced cyber experts and blockchain analysts uses advanced tracking techniques to follow stolen funds across the blockchain and engage with crypto exchanges when possible. They’re not just tech-savvy—they’re strategic and persistent. WHY CHOOSE iBOLT CYBER HACKER COMPANY? (1) Proven success in crypto asset recovery (2) Fast, professional, and discreet service (3) Skilled in blockchain forensics and cyber investigation (4) Committed to fighting online fraud and supporting victims Don’t give up. I strongly recommend reaching out to iBolt Cyber Hacker Company. ENQUIRIES: info @ iboltcyberhack . org/ www . iboltcyberhack. org/ +39. 351. 105. 3619.
  • Topics

×
×
  • Create New...

Important Information

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