I'm adjusting the PackageMaker scripts in our installer project so we can detect whether Java is installed or not. If not, our installer can prompt the user to install it. We'd like the user to have Java installed BEFORE they finish installing our product.
When the user upgrades from 10.6.8 to 10.7, the Java files from 10.6.8 are left on the disk. So the 10.7 System Profiler shows Java as being installed. But if I run /usr/bin/java in Terminal, the system will detect this and bring up Software Update.
So, how can my installer bash scripts tell if Java is really installed and enabled or not? Thanks.
When the user upgrades from 10.6.8 to 10.7, the Java files from 10.6.8 are left on the disk. So the 10.7 System Profiler shows Java as being installed. But if I run /usr/bin/java in Terminal, the system will detect this and bring up Software Update.
So, how can my installer bash scripts tell if Java is really installed and enabled or not? Thanks.