Here's a patch to fix a few build errors with recent JDK, JavaCC and so forth. It works for me with JavaCC 4.0, JTB 1.3.2 and Sun's JDK 1.6.0_04. The only peculiar thing it does is to filter the output of JTB to avoid JavaCC mis-parsing nested angle brackets.
Patch to fix Datascript build