Jump to content

Recommended Posts

Posted

I try to recompile but I get errors..

== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==

# found jad, ff, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs

, param csvs, astyle, astyle config

== Recompiling client ==

> Cleaning bin

> Recompiling

'"C:\Program Files\Java\jdk1.6.0_23\bin\javac" -Xlint:-options -deprecation -g -

source 1.6 -target 1....' failed : 1

 

== ERRORS FOUND ==

 

src\minecraft\net\minecraft\src\ModLoader.java:387: type parameters of <T>T cann

ot be determined; no unique maximal instance exists for type variable T with upp

er bounds T,java.lang.Object

        return ReflectionHelper.getPrivateValue(instanceclass, instance, fieldin

dex);

                                              ^

 

src\minecraft\net\minecraft\src\ModLoader.java:401: type parameters of <T>T cann

ot be determined; no unique maximal instance exists for type variable T with upp

er bounds T,java.lang.Object

        return ReflectionHelper.getPrivateValue(instanceclass, instance, field);

 

                                              ^

 

2 errors

==================

 

!! Can not find server sources, try decompiling !!

Press any key to continue . . .

Posted

I got errors like that when I was trying to use arrays in templates. Basically, in Java, you can't dynamically allocate objects of a wildcard type in a template function.

Posted

I got this error once, and judging from the error log, you don't have the required version of java to do the decompiling. Download the JDK 7u3 from http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html and try it again. If that fails, you may have another mod (outside of Modloader or Forge) in your jar. Look at jakj's post about decompiling with other mods. If you are using forge, it has its own batch file for installing itself. Use it.

Posted

No, if you sre drcompiling with forge, you use the cloent version and decompile it too. The source version with instsller is for original development only.

Posted

Well, again, we don't really have enough info from OP (like any mods installed, how they set up MCP, etc.), but the <T> T thing was something I did see when I was trying to get MCP set up, so I am just recommending things that I tried to get my copy working.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...