Jump to content

Can't run Forge 1.6.1 from within eclipse


culegooner

Recommended Posts

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?

 

 

 

 

 

Link to comment
Share on other sites

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 :)

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

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.

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

    • Oklahoma Nation Cowboys at Youngstown Country PenguinsYoungstown, Ohio; Wednesday, 7 p.m. EDTBOTTOM LINE: The Youngstown Region Penguins facial area the Oklahoma Country Cowboys within the Countrywide Invitation Penguins include absent 15-5 versus Horizon League rivals, with a 9-4 history within non-meeting participate in. Youngstown Region is 1-2 inside online games resolved as a result of considerably less than 4 facts. The Cowboys are 8-10 in just Massive 12 engage in. Oklahoma Region ranks 9th within just the Large 12 taking pictures 31.1% towards 3-stage wide PERFORMERS: Dwayne Cohill is averaging 17.8 details and 4.8 helps for the Penguins. Adrian Nelson is averaging 17.1 info higher than the remaining 10 game titles for Youngstown Thompson is averaging 11.7 details for the Cowboys. Caleb Asberry is averaging 13.1 facts about the very last 10 video games for Oklahoma last 10 Video games: Penguins: 7-3 Zeke Zaragoza Jersey, averaging 79.7 info, 33.4 rebounds, 14.8 helps, 5.3 steals and 2.7 blocks for each video game despite the fact that capturing 48.1% versus the marketplace. Their rivals incorporate averaged 72.4 details for every : 4-6, averaging 66.4 specifics, 33.1 rebounds, 11.1 helps Jake Henry Jersey, 4.9 steals and 3.6 blocks for each sport even though taking pictures 41.3% towards the sector. Their rivals consist of averaged 72.0 info. The made this tale making use of technological innovation delivered by means of Information and facts Skrive and info against Sportradar. Cowboys Shop
    • Oklahoma Nation Cowboys at Youngstown Country PenguinsYoungstown, Ohio; Wednesday, 7 p.m. EDTBOTTOM LINE: The Youngstown Region Penguins facial area the Oklahoma Country Cowboys within the Countrywide Invitation Penguins include absent 15-5 versus Horizon League rivals, with a 9-4 history within non-meeting participate in. Youngstown Region is 1-2 inside online games resolved as a result of considerably less than 4 facts. The Cowboys are 8-10 in just Massive 12 engage in. Oklahoma Region ranks 9th within just the Large 12 taking pictures 31.1% towards 3-stage wide PERFORMERS: Dwayne Cohill is averaging 17.8 details and 4.8 helps for the Penguins. Adrian Nelson is averaging 17.1 info higher than the remaining 10 game titles for Youngstown Thompson is averaging 11.7 details for the Cowboys. Caleb Asberry is averaging 13.1 facts about the very last 10 video games for Oklahoma last 10 Video games: Penguins: 7-3 Zeke Zaragoza Jersey, averaging 79.7 info, 33.4 rebounds, 14.8 helps, 5.3 steals and 2.7 blocks for each video game despite the fact that capturing 48.1% versus the marketplace. Their rivals incorporate averaged 72.4 details for every : 4-6, averaging 66.4 specifics, 33.1 rebounds, 11.1 helps Jake Henry Jersey, 4.9 steals and 3.6 blocks for each sport even though taking pictures 41.3% towards the sector. Their rivals consist of averaged 72.0 info. The made this tale making use of technological innovation delivered by means of Information and facts Skrive and info against Sportradar. Cowboys Shop
    • DUTA89 agen slot online terbaik dan sering memberikan kemenangan kepada setiap member yang deposit diatas 50k dengan tidak klaim bonus sepeser pun.   Link daftar : https://heylink.me/DUTA89OFFICIAL/  
    • Hello All! Started a MC Eternal 1.6.2.2 server on Shockbyte hosting. The only other mod I added was betterfarmland v0.0.8BETA. Server is 16GB and Shockbyte wont tell me how many CPU cores i have.  We are having problems now when players log in it seems to crash the server. At other times it seems fine and we can have 3 people playing for hours at a time. Usually always when it does crash it is when someone logs in. Crash Reports Below. To the person who can post the fix I will reward $100 via Paypal.   ---- Minecraft Crash Report ---- // This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~] Time: 2024-09-19 21:04:58 UTC Description: Exception in server tick loop java.lang.StackOverflowError     at net.minecraft.advancements.PlayerAdvancements.hasCompletedChildrenOrSelf(PlayerAdvancements.java:451)     at net.minecraft.advancements.PlayerAdvancements.shouldBeVisible(PlayerAdvancements.java:419)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:385)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:406)     at net.minecraft.advancements.PlayerAdvancements.ensureVisibility(PlayerAdvancements.java:411)     at net.minecraft.advancements.P  
    • It worked the first time but none of my friends and now me either could enter the server. internal exception: io.netty.handler.codec.DecoderException Unknown modifier tconstruct:soulbound
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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