Following instructions in ryang’'s post “Guide To Hacking Jive Messenger”, I make JM source code 2.1.5 fit in eclipse finally. However I get lots of syntax error messages. For example, in the package of org.jivesoftware.admin, file AdminConsole.java,
At the location of Project -> Properties -> Java Compiler, it uses workspace settings; so I go to Window->preference->java->compiler->compliance and classfiles, which shows that Compiler compliance level: 1.4. I don’'t find your “5.0 compiler compliance level”. The only installed JRE on my laptop is jre1.5.0.
You will need to use JDK 1.5.0 for compiling JM source code. JRE does not include a compiler. Follow url=http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=jdk- 1.5.0_04-oth-JPR&SiteId=JSC&TransactionId=noregthis link[/url] to download the latest JDK
Sorry, my previous post may cause confusion. I know I need JDK 1.5.0 to compile JM source code, I promise
When I mention “the only installed JRE”, I mean it’'s a choice in eclipse preference dialog. In that dialog, I tick jdk 1.5.0_04 (the other one is jre 1.5.0_04).
What I don’'t understand is that eclipse shows syntax error messages on lines like
Oops, I thought that you were already using Eclispe 3.1. Eclipse started to support Java 1.5 from the 3.1 release. Let us know if you need further help configuring or running the server.