One way of solving this is editing your cmdline.txt to avoid starting any of your services:
Insert your SD card into another PC. On your SD boot partition, edit the file cmdline.txt and append (in the same line):
Save and insert again your sd card into your raspberry pi. When you power it, you will be logged as root, without starting any of your services. What we have done is skipping the execution of the init program which manages to start all the services.
Once you have disabled java, shutdown your raspberry pi by using:
(You can't use shutdown because you don't have any init program running and shutdown will try to tell init to change the current runlevel to zero)
And finally, edit again your cmdline.txt file on another pc and restore it has before so you can start raspbian normally.