To clear the Java cache, open the Java control panel, which you can find in the Windows Control Panel or in System Preferences on a Mac.
You can convert a JFIF file to JPG, though the two formats are nearly identical, and most software will open a JFIF file as a JPG.