Java is a huge vector for insecurity anyhow...Although if you need it bad enough, I suppose you could use Basilisk Browser and put it on that.
I don't recommend it at all though. Java is after all one of the oldest most insecure vectors for malware. ;)