{"id":97,"date":"2006-06-18T18:54:05","date_gmt":"2006-06-18T13:24:05","guid":{"rendered":"https:\/\/kunaldua.local\/blog\/?p=97"},"modified":"2006-06-18T18:54:05","modified_gmt":"2006-06-18T13:24:05","slug":"how-to-force-reinstall-java-on-mac-os-x","status":"publish","type":"post","link":"https:\/\/kunaldua.com\/blog\/2006\/06\/18\/how-to-force-reinstall-java-on-mac-os-x\/","title":{"rendered":"How to force reinstall Java on Mac OS X"},"content":{"rendered":"<p>If you&#8217;ve managed to screw up your existing Java installation on Mac OS X, or you&#8217;re looking to downgrade for reason(s) best know to you, here&#8217;s a nice and easy way of preventing Mac OS X from telling you it knows best ((The &#8220;installer cannot run on this machine because it does not have&#8230;&#8221; messages)).<\/p>\n<p>Note: This method does not require Pacifist and\/ or modification of the installation package in any other way.<\/p>\n<p>Disclaimer: This works on Mac OS X 10.3.9. It may or may not work on Tiger. It may or may not blow up your computer. You run it at your own risk.<\/p>\n<p>And finally, the method:<br \/>\nStep 1 (aka Duh!)<br \/>\nDownload the version you need to install on your machine from <a href=\"http:\/\/developer.apple.com\/java\/download\/\">Apple&#8217;s site<\/a>.<\/p>\n<p>Step 2 (aka My Lucky Day)<br \/>\nRun it and see if it lets you do the needful. If this step is successful, you shouldn&#8217;t have been reading this page in the first place. Thanks for wasting my bandwidth. If not, exit the installer and proceed.<\/p>\n<p>Step 3 (aka The Good Stuff)<br \/>\nIn Finder, go to folder \/System\/Library\/Frameworks\/JavaVM.framework\/Resources and move the files &#8220;version.plist&#8221; and &#8220;Info-macos.plist&#8221; to a safe place like the Desktop. The moving process might prompt you for password and involve two separate transactions &#8211; copying files to the target location and then deleting them from the source.<br \/>\nHope I have been successful in complicating a simple process.<\/p>\n<p>Step 4 (aka Eureka)<br \/>\nRun the installer again and watch as it proceeds with installation. You didn&#8217;t think it would work, did you?<\/p>\n<p>Step 5 (aka Double Check)<br \/>\nOpen Terminal and type &#8220;java -version&#8221;. Is it what you just installed?<\/p>\n<p>Step 6 (aka Optional)<br \/>\nIf you answered yes to #5, it&#8217;s safe to delete the files you kept as backup. You may, however, want to keep them for reasons best known to you. Leave a comment, below, reassuring everyone that this method actually works.<br \/>\nIf you answered no or if step 4 didn&#8217;t work for you and you are running Panther, leave a comment so I can take down this post\/ blog. If you are running Tiger, please drop in a line to let all the regular readers of this blog (half a dozen Windows users) know that this technique won&#8217;t run on 10.4.<\/p>\n<p>Note on disclaimer: In case you are wondering, I was kidding about the blowing up bit. This technique builds on the method described in an official <a href=\"http:\/\/developer.apple.com\/technotes\/tn2002\/tn2099.html\">Apple Technical Note<\/a>. While the note says that removing one file would do just fine, my experiments showed you needed to remove both, especially if you are changing versions. Also, like I said above, you can install any version of Java intended for your OS, not just the one that came with your CD\/ DVD like the note says.<\/p>\n<p>Symptoms (aka when to use this method)<br \/>\nThis method is known to fix the &#8220;Segmentation Fault&#8221; and &#8220;HotSpot not at correct virtual address. Sharing disabled.&#8221; states that some Java installations may find themselves in.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve managed to screw up your existing Java installation on Mac OS X, or you&#8217;re looking to downgrade for reason(s) best know to you, here&#8217;s a nice and easy way of preventing Mac OS X from telling you it knows best ((The &#8220;installer cannot run on this machine because it does not have&#8230;&#8221; messages)).<a class=\"more-link\" href=\"https:\/\/kunaldua.com\/blog\/2006\/06\/18\/how-to-force-reinstall-java-on-mac-os-x\/\">Continue reading <span class=\"screen-reader-text\">&#8220;How to force reinstall Java on Mac OS X&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[2],"tags":[],"class_list":["post-97","post","type-post","status-publish","format-standard","hentry","category-apple","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/kunaldua.com\/blog\/wp-json\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kunaldua.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kunaldua.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kunaldua.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kunaldua.com\/blog\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":0,"href":"https:\/\/kunaldua.com\/blog\/wp-json\/wp\/v2\/posts\/97\/revisions"}],"wp:attachment":[{"href":"https:\/\/kunaldua.com\/blog\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kunaldua.com\/blog\/wp-json\/wp\/v2\/categories?post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kunaldua.com\/blog\/wp-json\/wp\/v2\/tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}