Java Snippet – Read Entire File (Including EOL Characters!) Not Line-By-Line And Without Loops!

This nice technique reads the file `as is`,
it even keeps the internal EOL characters (`\r\n`, `\n`,..)

It requires no external-libraries and even compatible with Java7!

Forget the entire awkward combination of InputStream, FileInputStream, FileReader, InputStreamReader and BufferedReader
and those embarrassing readline() loops!

Continue reading

Uninstall Java – JavaRa + CCleaner + Additional Reg Cleanup

uninstalling java using the given uninstallers (first JDK, than JRE), using JavaRa, Locate32 to help you find all sun,oracle and java places in your c-drive (a lot of hidden links under c:\windows), that javapath symbolic link folder, that addition stuff in PATH, the *_HOME definition, following with CCleaner reg clean and saving the following text as .reg file and running it to remove additional (left out) keys..
Continue reading

What’s The Deal With Java Plug-in 1.3.1_51 And {CAFEEFAC-0013-0001-0051-ABCDEFFEDCBA}, {CAFEEFAC-0013-0001-0051-ABCDEFFEDCBB}

HKEY_CLASSES_ROOT\CLSID\{CAFEEFAC-0013-0001-0051-ABCDEFFEDCBA} = 1.3.1.51
HKEY_CLASSES_ROOT\CLSID\{CAFEEFAC-0013-0001-0051-ABCDEFFEDCBB} = 1.3.1.51
HKEY_CLASSES_ROOT\CLSID\{CAFEEFAC-0013-0001-0052-ABCDEFFEDCBA} = 1.3.1.52
HKEY_CLASSES_ROOT\CLSID\{CAFEEFAC-0013-0001-0053-ABCDEFFEDCBB} = 1.3.1.52
...

it seems that the SSID is generated to match the version, nice joke guys @ oracle ;)