Added some java macros.