How does one remove old (and very old) versions of Java on Snow Leopard, (currently tolerating Java version 6)?

How does one remove old (and very old) versions of Java on Snow Leopard, (currently tolerating Java version 6)?

The Sun isn't particularly unhelpful to Mac people and whenever I try myself I get into dangerous places e.g. had to restore Snow Leopard.

Java.com have a Terminal Command for Lion to remove (old?) versions, but I don't want to risk it on Snow Leopard.

I can't seem to find much helpful advice, though one chap offers to solve Java problems for a mere $200.

Java should be paying US compensation more likely!

MacBook Pro, Mac OS X (10.6.8), Run Snow Leopard and Mountain Lion

Posted on Jan 15, 2015 11:59 PM

Reply
5 replies

Jan 24, 2015 12:55 PM in response to Mark Jalbert

Thanks Mark, But...

There is no mention of old versions (before version 6) listed in my JavaPreferences.app.

But I know they are there as there is a list of 17 items in the 'about:plugins' and the Firefox Java Plugin info. (please see attachment)

I looked into JavaRa until I realised it's only for windows.

The only reason I want to get rid of them is because Sun suggests they are a security vulnerability, and that much I believe.

As I said, Sun has a terminal command for Lion (to remove old versions of Java), which I would be happy to use if I had the assurance that it would work on Snow Leopard. There must be a Terminal Command for Snow Leopard that does the same.

As much as I hate Java I'm happy to keep 1.6 (Version 6) just in case I need it sometime and I believe that some of my software depends on having it around - but not such early versions.

I have been very surprised how many Electronic Devices, not only computers, depend on this Swiss Cheese Program - and especially about the fact the 50% of malware comes through Java system holes.

The right Terminal Command would make my day. In the list below I only want to see the two that refer to 1.6.User uploaded file


Thanks in advance.

Jan 26, 2015 9:45 AM in response to 9Cent

The "Mime Types" are a listing of compatible versions of Java that work with the plug-in, nothing more. /System/Library/Java/JavaVirtualMachines and /Library/Java/JavaVirtualMachines are the locations that you will find any JDK's. I recommend that you use the Java Preferences,.app to disable Java and for go attempting to remove the JDK's with Terminal commands. Also, disable the Java Applet plugin in any browsers that you use.

Jan 30, 2015 8:41 PM in response to Mark Jalbert

Thanks Mark,

Your answer seems to be closing in on an actual solution. I have always kept the Java preference.app disabled (unticked), and kept Java Disabled in my Browsers.

What would be terrific is if someone could direct me to the source of the correct Terminal Commands to remove the JDK's. (I would be tempted to remove them manually but they have so many different 'nicknames' you'd have to be related to know what they are, and it would be like picking nits of a herd of sheep.)


In any case, it's the Terminal Commands, appropriate to Snow Leopard 10.6.8, that I'm after. I have spent countless hours on fruitless searches for them, and not even Sun, or whoever they are now, seem to be willing to divulge them. They offer:


"

sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin"  but it's only for version 7 on Lion, deleting ALL Javaand requiring the reinstallation of the latest version.

In fact they contradict themselves somewhat, saying that: "Keeping old versions of Java on your system presents a serious security risk. However, some Java applications (or applets) can indicate that they are dependent on a particular (insecure) version, and may not run if you do not have that (insecure) version installed." They then tell you to go and sort it out with the software developer yourself. I' glad these chaps don't make medical equipment or brakes since they seem to have little interest in security.


I would be grateful to anyone who could let me know where the Snow Leopard Terminal Commands to remove Old versions of JAVA (JDK's), can be found.


Thanks in advance.


Mark - I just noticed in your message "...for go attempting to remove the JDK's with Terminal Commands." I read that as to disable Java before removing the JDK's with Terminal Commands." But did you mean, "forgo", as in "refrain from"?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How does one remove old (and very old) versions of Java on Snow Leopard, (currently tolerating Java version 6)?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.