Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Solution] Compile mod with Forge using Java 1.7


Recommended Posts

Hello, everyone!


I had a problem:

I use java 7 feature (String in switch) in my Minecraft mod. It's OK when i'm running it in Eclipse but when I compile it throws an error.


If you have the same problem, don't worry I found a solution:

1. Open mcp/conf/mcp.cfg file

2. Change "-source 1.6 -target 1.6" in line 160 to "-source 1.7 -target 1.7".

3. Run "recompile"


I posted this because I didn't find solution on forums and probably it'll help someone.




P.S. Sorry for my bad English.

Link to comment
Share on other sites

You shouldn't be using the python scripts and MCP if you're developing for 1.6.4 and above, use the gradle ones.

Read the EAQ before posting! OR ELSE!


This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.




Don't PM me, I don't check this account unless I have to.

Link to comment
Share on other sites

Developing mods for 1.7 java will alienate roughly 1/2 of the minecraft community. I advise against it.

However, as luacs says, this python is the old methods, and as such is not supported.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Link to comment
Share on other sites

This topic is now closed to further replies.

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.