I'm not sure this will work, but if you're using the HotSpot VM, try this in the arguments to the java
command:
-XX:HeapDumpPath=/dev/null
If you want to turn off core dumps altogether, you can use the ulimit approach (make sure to use the -H flag to set the hard limit):
ulimit -c -H 0