Equivalent Exchange 3

Equivalent Exchange 3

2M Downloads

Unable to sign jar - cannot find keystore

LyokoJames opened this issue ยท 9 comments

commented

I'm trying to build the equivalent exchange 3 jar file base on the instruction given in the readme but there seems to be a problem with finding a keystore.

I sincerely apologise if this is a "frivolous" issue but I don't really know anything about full-on java development or decompiling or obfuscation. I have got here by following the readme instructions and your let's mod series as well as troubleshooting previous problems using google.

Below I have pasted the last part of the output I get from the command prompt after running 'ant release' while in the equivalent-exchange-3 folder.

     [exec] - Done in 16.16 seconds
     [exec] !! Can not find server md5s !!
     [exec] Press any key to continue . . .
      [jar] Building jar: C:\Documents and Settings\JAMES\My Documents\Java Deve
lopment\Minecraft Modding\source\Equivalent-Exchange-3\Releases\1.5.2\pre2\ee3-u
niversal-pre2-22.jar

sign_jar:
  [signjar] Signing JAR: C:\Documents and Settings\JAMES\My Documents\Java Devel
opment\Minecraft Modding\source\Equivalent-Exchange-3\Releases\1.5.2\pre2\ee3-un
iversal-pre2-22.jar to C:\Documents and Settings\JAMES\My Documents\Java Develop
ment\Minecraft Modding\source\Equivalent-Exchange-3\Releases\1.5.2\pre2\ee3-univ
ersal-pre2-22.jar as ${build.keystore.alias}
  [signjar] jarsigner error: java.lang.RuntimeException: keystore load: C:\Docum
ents and Settings\JAMES\My Documents\Java Development\Minecraft Modding\source\E
quivalent-Exchange-3\${build.keystore.location} (The system cannot find the file
 specified)

BUILD FAILED
C:\Documents and Settings\JAMES\My Documents\Java Development\Minecraft Modding\
source\Equivalent-Exchange-3\build.xml:91: The following error occurred while ex
ecuting this line:
C:\Documents and Settings\JAMES\My Documents\Java Development\Minecraft Modding\
source\Equivalent-Exchange-3\build.xml:50: jarsigner returned: 1

Total time: 40 seconds
commented

Use "build" not "release"

commented

You should be targeting "build" not "release" in ant. That is only for official releases by pahimar and are singned with his private key.

commented

...whoops, need to update that :>

commented

Thank you!

commented

Yes, I wrote the Readme back in the 1.4 days, when that installation method was 100% correct. With the new build.xml and Forge changes, it's become a bit updated. I'm still working on cleaning out my repo, then a README refresh along with pt_BR will be coming along.

commented

I was burned by this same issue, the documentation is a bit off on this link:
https://github.com/pahimar/Equivalent-Exchange-3#compiling-equivalent-exchange-3

  1. the MCP steps didn't' work, I was getting errors with the BouncyCastle classes not being found. I found a forum post where someone said you don't' download/run MCP anymore. Instead you let the forge install.cmd do it all for you now (That got me past that error).

Steps to replace the MCP documentation section:

    1. (Remove step 1.)
    1. (Change to be just creating the directory structure) [Becomes step 1.]
    1. (Leave as stated) [Becomes step 2.]
    1. (Leave as stated) [Becomes step 3.]
    1. (New Step) [Become step 4.] Move the MCP files that Forge (install.bat/sh) downloaded into the folders previously indicated in original step 2.
  1. The steps under Setup EE3 says to run "ant release", to which this post indicates we (Who are not pahimar) should be using ant build.
commented

As far as i could tell the only thing "wrong" in the documentation is the run "Ant Release" portion the rest of it is exactly how i do it and i had no problem using this Ant script to compile both Pahimar's mod and my own, i even added targets to download and install Forge and MCP.

commented

Sorry Sprocks59,

---Short Story---
Looks like I caused the first issue I encountered by trying to use the minecraft.jar and minecraft_server.jar files from minecraft.net. including the bin and resources directories from the %appdata%/roaming/.minecraft folder.

---Final Clarification---
So yes, only the "Ant Release". Sorry about that (I went through and re-did it all just now to verify it was me).

---Suggestion---
I would suggest clarifying what "Install MCP Dependencies" means, or removing it. I could not find any pre-setup steps on the site.

---Long story---
I did that because I misinterpreted step 1 when it said to Install MCP Dependencies. I couldn't find anything on the MCP website talking about dependencies so I (Incorrectly assumed) that the README-MCP.TXT file setup steps needed to be followed. (Which indicate to download the minecraft.jar and server files, and to run decompile.bat) I believe this is what caused my issue with BouncyCastle missing.

Obviously I was probably trying anything to get it to work at that point. Again, I validated running the steps exactly as stated (But doing nothing for the Install MCP Dependencies" works.

Sorry about that.

commented