Java woes on compatibility