thats a good idea. i got a virus last year from java. i was just entering a website then java icon comes up in system tray and whole comp went haywire and started installing things. havent installed java since but miss it for a couple things. which exes do you rename and will it stop anything from running java?
ALL of them, I take no chances!
Code:
batch file to "Disable" java
ren "C:\Program Files (x86)\Java\jre6\bin\java.exe" java.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\javaw.exe" javaw.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\javacpl.exe" javacpl.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\java-rmi.exe" java-rmi.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\jbroker.exe" jbroker.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\javaws.exe" javaws.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\keytool.exe" keytool.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\rmid.exe" rmid.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\jp2launcher.exe" jp2launcher.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\jqs.exe" jqs.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\jqsnotify.exe" jqsnotify.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\kinit.exe" kinit.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\klist.exe" klist.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\ktab.exe" ktab.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\orbd.exe" orbd.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\pack200.exe" pack200.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\policytool.exe" policytool.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\rmiregistry.exe" rmiregistry.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\servertool.exe" servertool.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\ssvagent.exe" ssvagent.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\tnameserv.exe" tnameserv.ex_
ren "C:\Program Files (x86)\Java\jre6\bin\unpack200.exe" unpack200.ex_
pause
Batch file to "re-enable" Java
ren "C:\Program Files (x86)\Java\jre6\bin\java.ex_" java.exe
ren "C:\Program Files (x86)\Java\jre6\bin\javaw.ex_" javaw.exe
ren "C:\Program Files (x86)\Java\jre6\bin\javacpl.ex_" javacpl.exe
ren "C:\Program Files (x86)\Java\jre6\bin\java-rmi.ex_" java-rmi.exe
ren "C:\Program Files (x86)\Java\jre6\bin\jbroker.ex_" jbroker.exe
ren "C:\Program Files (x86)\Java\jre6\bin\javaws.ex_" javaws.exe
ren "C:\Program Files (x86)\Java\jre6\bin\keytool.ex_" keytool.exe
ren "C:\Program Files (x86)\Java\jre6\bin\rmid.ex_" rmid.exe
ren "C:\Program Files (x86)\Java\jre6\bin\jp2launcher.ex_" jp2launcher.exe
ren "C:\Program Files (x86)\Java\jre6\bin\jqs.ex_" jqs.exe
ren "C:\Program Files (x86)\Java\jre6\bin\jqsnotify.ex_" jqsnotify.exe
ren "C:\Program Files (x86)\Java\jre6\bin\kinit.ex_" kinit.exe
ren "C:\Program Files (x86)\Java\jre6\bin\klist.ex_" klist.exe
ren "C:\Program Files (x86)\Java\jre6\bin\ktab.ex_" ktab.exe
ren "C:\Program Files (x86)\Java\jre6\bin\orbd.ex_" orbd.exe
ren "C:\Program Files (x86)\Java\jre6\bin\pack200.ex_" pack200.exe
ren "C:\Program Files (x86)\Java\jre6\bin\policytool.ex_" policytool.exe
ren "C:\Program Files (x86)\Java\jre6\bin\rmiregistry.ex_" rmiregistry.exe
ren "C:\Program Files (x86)\Java\jre6\bin\servertool.ex_" servertool.exe
ren "C:\Program Files (x86)\Java\jre6\bin\ssvagent.ex_" ssvagent.exe
ren "C:\Program Files (x86)\Java\jre6\bin\tnameserv.ex_" tnameserv.exe
ren "C:\Program Files (x86)\Java\jre6\bin\unpack200.ex_" unpack200.exe
pause
I'm sure there's probably a more clever way but this does it for me. This is on win7, just remember to give the shortcut to the batch file admin rights or it won't work if you're in vista/win7.
It seems to stop the main Java app I use to stop working with just renaming JAVAW.exe or JAVA.exe, so this should close just about any security hole that may exist in java temporarily.