While i was trying to downgrade JDK from 1.8.0._25 to 1.8.0_05 into the yosemite 10.10.2 so that i could use the DCEVM in my OSX.
I first remove the new version by just do a
sudo mv jdk1.8.0_25.jdk ~/Desktop/
Next step is to install the 1.8.0_05 which is the current latest version that DCEVM supports.However, I got the following error:
Your system has Mac OS X Version 10.10.2. This product can be installed on Version 10.7.3 or later.
Visit java.com/help for more information.
Logically it looks really weird since apparently 10.10.2 is later than the 10.7.3. I think what they do is just compare the first digit so 1<7.
To install this, I have to spoof the OSX version.
1. go to /System/Library/CoreServices and find the SystemVersion.plist which from its name we know contains the system version.
2. if you try to edit it directly you will find it r–r–r– readonly. To change it, you can either chmod it to 777 and modify content, or open it with some textEditor and do save as the same file name and extension. Then copy it back to the directory.
3. You can modify the version number to 9001 which is obviously larger than 10.10.1. I suggest you modify both ProductVersion and ProductUserVisibleVersion so that you could go to the “about this Mac” to verify the change.
4. Now you should be able to install without that error.
5. Do remember to change it back to whatever version you were before the modification.