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:

 

 

 

== MCP 8.01 (data: 8.02, client: 1.6.1, server: 1.6.1) ==

[01:56:30] Exception in thread "main" java.lang.NullPointerException

[01:56:30]      at java.util.logging.Logger.setParent(Logger.java:1472)

[01:56:30]      at net.minecraft.logging.LogAgent.setupLogger(LogAgent.java:33)

[01:56:30]      at net.minecraft.logging.LogAgent.<init>(LogAgent.java:25)

[01:56:30]      at net.minecraft.client.Minecraft.<init>(Minecraft.java:306)

[01:56:30]      at net.minecraft.client.main.Main.main(Main.java:77)

[01:56:30]      at Start.main(Start.java:68)

'"C:\Program Files\Java\jdk1.7.0_21\bin\java" -Xincgc -Xms1024M -Xmx1024M -cp ".

.\bin\minecraft;..\sr...' failed : 1

FATAL ERROR

Traceback (most recent call last):

  File "runtime\startclient.py", line 30, in startclient

  File "C:\minecraft\forge161\folder\forge\mcp\runtime\commands.py", line 1355,

in startclient

    self.runmc(forkcmd)

  File "C:\minecraft\forge161\folder\forge\mcp\runtime\commands.py", line 1395,

in runmc

    raise CalledProcessError(process.returncode, forkcmd, output)

CalledProcessError: Command '"C:\Program Files\Java\jdk1.7.0_21\bin\java" -Xincg

c -Xms1024M -Xmx1024M -cp "..\bin\minecraft;..\src\minecraft;..\jars\versions\1.

6.1\1.6.1.jar;..\lib;..\lib\*;..\jars\libraries\net\java\jinput\jinput\2.0.5\jin

put-2.0.5.jar;..\jars\libraries\org\lwjgl\lwjgl\lwjgl-platform\2.9.0\lwjgl-platf

orm-2.9.0-natives-windows.jar;..\jars\libraries\org\apache\commons\commons-lang3

\3.1\commons-lang3-3.1.jar;..\jars\libraries\com\paulscode\libraryjavasound\2010

1123\libraryjavasound-20101123.jar;..\jars\libraries\net\sf\jopt-simple\jopt-sim

ple\4.5\jopt-simple-4.5.jar;..\jars\libraries\com\google\guava\guava\14.0\guava-

14.0.jar;..\jars\libraries\lzma\lzma\0.0.1\lzma-0.0.1.jar;..\jars\libraries\org\

ow2\asm\asm-all\4.1\asm-all-4.1.jar;..\jars\libraries\com\paulscode\codecjorbis\

20101023\codecjorbis-20101023.jar;..\jars\libraries\org\bouncycastle\bcprov-jdk1

5on\1.47\bcprov-jdk15on-1.47.jar;..\jars\libraries\com\paulscode\soundsystem\201

20107\soundsystem-20120107.jar;..\jars\libraries\com\paulscode\librarylwjglopena

l\20100824\librarylwjglopenal-20100824.jar;..\jars\libraries\org\scala-lang\scal

a-library\2.10.2\scala-library-2.10.2.jar;..\jars\libraries\org\lwjgl\lwjgl\lwjg

l_util\2.9.0\lwjgl_util-2.9.0.jar;..\jars\libraries\org\scala-lang\scala-compile

r\2.10.2\scala-compiler-2.10.2.jar;..\jars\libraries\net\java\jutils\jutils\1.0.

0\jutils-1.0.0.jar;..\jars\libraries\org\lwjgl\lwjgl\lwjgl\2.9.0\lwjgl-2.9.0.jar

;..\jars\libraries\commons-io\commons-io\2.4\commons-io-2.4.jar;..\jars\librarie

s\net\sourceforge\argo\argo\2.25\argo-2.25.jar;..\jars\libraries\com\google\code

\gson\gson\2.2.2\gson-2.2.2.jar;..\jars\libraries\com\paulscode\codecwav\2010102

3\codecwav-20101023.jar;..\jars\libraries\net\java\jinput\jinput-platform\2.0.5\

jinput-platform-2.0.5-natives-windows.jar;..\jars\libraries\net\minecraft\launch

wrapper\1.3\launchwrapper-1.3.jar" -Djava.library.path=..\jars\versions\1.6.1\1.

6.1-natives Start' returned non-zero exit status 1

Press any key to continue . . .

 

 

 

 

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

    • Hi, i'm really having problems trying to set the texture to my custom item. I thought i'm doing everything correctly, but all i see is the missing texture block for my item. I am trying this for over a week now and getting really frustrated. The only time i could make the texture work, was when i used an older Forge version (52.0.1) for Minecraft (1.21.4). Was there a fundamental change for textures and models somewhere between versions that i'm missing? I started with Forge 54.1.0 and had this problem, so in my frustration i tried many things: Upgrading to Forge 54.1.1, created multiple new projects, workspaces, redownloaded everything and setting things up multiple times, as it was suggested in an older thread. Therea are no errors in the console logs, but maybe i'm blind, so i pasted the console logs to pastebin anyway: https://pastebin.com/zAM8RiUN The only time i see an error is when i change the models JSON file to an incorrect JSON which makes sense and that suggests to me it is actually reading the JSON file.   I set the github repository to public, i would be so thankful if anyone could take a look and tell me what i did wrong: https://github.com/xLorkin/teleport_pug_forge   As a note: i'm pretty new to modding, this is my first mod ever. But i'm used to programming. I had some up and downs, but through reading the documentation, using google and experimenting, i could solve all other problems. I only started modding for Minecraft because my son is such a big fan and wanted this mod.
    • Please read the FAQ (link in orange bar at top of page), and post logs as described there.
    • Hello fellow Minecrafters! I recently returned to Minecraft and realized I needed a wiki that displays basic information easily and had great user navigation. That’s why I decided to build: MinecraftSearch — a site by a Minecraft fan, for Minecraft fans. Key Features So Far Straight-to-the-Point Info: No extra fluff; just the essentials on items, mobs, recipes, loot and more. Clean & Intuitive Layout: Easy navigation so you spend less time scrolling and more time playing. Optimized Search: Search for anything—items, mobs, blocks—and get results instantly. What I’m Thinking of Adding More data/information: Catch chances for fishing rod, traveling villager trades, biomes info and a lot more. The website is still under development and need a lot more data added. Community Contributions: Potential for user-uploaded tips for items/mobs/blocks in the future. Feature Requests Welcome: Your ideas could shape how the wiki evolves! You can see my roadmap at the About page https://minecraftsearch.com/about I’d love for you to check out MinecraftSearch and see if it helps you find the info you need faster. Feedback is crucial—I want to develop this further based on what the community needs most, so please let me know what you think. Thanks, and happy crafting!
    • Instructions on how to install newer Java can be found in the FAQ
    • That's just plain wrong... newer versions are much better optimised and start a lot faster than 1.8.9, both Forge and Minecraft itself. Comparing Fabric 1.21 with Forge 1.8 is like comparing apples and oranges... one's brand new and the other's over a decade old.
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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