When we went through this for Lucene 1.4.3, the trick was to compile under main, and then make sure the regression tests passed if Sun Java was installed. That way we knew the package was ok to ship and the problems were all in the runtime. But seriously, what's the ETA for Sun Java to enter main? Fedora is already shipping it, right?