Java preferences in Ubuntu

The Java preferences on Ubuntu are stored in a file on the following path:

~/.java/.userPrefs/YOURPACKAGENAME/prefs.xml

If you wanna delete or modify your Java preferences on Ubuntu you just have to play around with prefs.xml file.