Closed jdb8 closed 6 years ago
Ah shoot, sorry about that --release
flag; I added it because I'm trying the new Java 1.9 release, and didn't realize that gradle should only apply that to the newer/1.9 releases. Just removing it for now is good, I'll remove it.
To avoid the format error
, if you run ./mirror
in the main directory, it should have an if
statement in there that automatically picks up the build/libs/mirror-all.jar
.
(If that doesn't work, what it's basically doing is calling java -jar build/libs/mirror-all.jar
instead of directly invoking the jar, which is a JVM-ish, that it does not produce native executables).
Good call on adding a section on contributing/compiling; I'll fix the --release
issue and add a note to the readme.
Thanks for the issue; I'll take a look at the others as well, but let me know if you run into any more build/compiling issues.
I've been trying to debug an issue with mirror, and am having trouble working out what's going on.
I tried cloning the repo and building a local copy of the project so as to insert some print statements etc. but wasn't able to get it working. I tried:
I tried removing/changing the line in
build.gradle
referencing--release
, but it then produced binaries withzsh: exec format error: ./build/libs/mirror-all.jar
.If you have any guidance on how best to build a local copy for debugging purposes, I'd be happy to help contribute and try to fix bugs where I find them. Having trouble since I'm a little rusty with java build systems D: