Re: Using Jikes to Compile KoLmafia
[quote author=holatuwol link=topic=374.msg6155#msg6155 date=1195758146]
Message to people using Linux or Windows.
Since KoLmafia aims for Java 1.4.2 compliance, it turns out we can take advantage of a faster compiler than the Sun compiler for Java: namely, the now-abandoned
Jikes project.
To setup Jikes, download the package appropriate for your operating system, set your JIKES_HOME environment variable, open up the new build.properties in the root KoLmafia folder, put a # in front of the line that says to use the modern compiler, and remove the # in front of the line that says to use the jikes compiler. Poof, now ant will use jikes to compile KoLmafia.
As a side note, even if you opt not to use Jikes, you might have benefitted from the code being made easier to compile.
Before making KoLmafia compatible with Jikes, compilation on my system took 20-40 seconds with the Sun compiler, pending on what else was running at the time. Right now, by simplifying the code to adhere to what Jikes needs it to look like, it only takes 10 seconds on my system to compile using the Sun compiler.
However, to maybe convince you to switch, it only took 7 seconds on my system to compile using Jikes. >.> Win!
[/quote]
I have been compiling mafia jar files for quite sometime now, actually proud I figured out how to get it to compile(on a windows 2000 laptop no doubt) . My problem is that even though I have jikes setup properly, it still uses javac. I do not see a build.properties file anywhere in the mafia structure that the svn program downloads. Any hints/tips/suggestions would be most appreciated