zen0wu / topcoder-greed

greedy editor for topcoder arena
Apache License 2.0
229 stars 45 forks source link

Can't get greed2 working #73

Closed jbransen closed 10 years ago

jbransen commented 10 years ago

On 32-bit Windows 7 with: $ java -version java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06) Java HotSpot(TM) Client VM (build 20.12-b01, mixed mode)

I can't get it working. I suppose this is a Java 6 vs Java 7 problem, because I get something like java.lang.ClassNotFoundException: greed.Greed, the same as I had before on a different, see http://apps.topcoder.com/forums/?module=Thread&threadID=760010

When I try to build greed myself from the github sources I also cannot get it working. It sort of builds (modulo some test failures because the return codes of java an cat are different, which seem innocent to me), I then can add greed as an editor, but when I press configure I get another exception: java.lang.ClassNotFoundException: com.typesafe.config.ConfigMergeable (and of course a long stacktrace and no configure window)

Can you try to build the .jar with the jdk6 again so that the download works, and do you have a clue what the problem can be when I compile from source?

vexorian commented 10 years ago

Use fatjar instead of jar to compile from source.

jbransen commented 10 years ago

Yes, that seems to work! I still think it would be nice to put a version that works with java 6 as a download, since that is the version required to run the TC arena an a version that still many people are using.

Btw, to clarify for others what vexorian meant, to build you should use: gradlew.bat fatjar

or on linux/mac: ./gradlew fatjar

vexorian commented 10 years ago

@shivawu: Is it really necessary for us to compile to fatjar? If there was a way to make the jar command work, can we commit it?

Currently ./gradlew jar generates a jar that is unusable in topcoder , it seems to only lead to confusion.

wookayin commented 10 years ago

I've just submitted a PR #74 to make sure one can produce a fat JAR from the build instruction.

Please use gradle build afterwards. (It seems that directly invoking task fatJar or jar does not invoke tests)