• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: InstallationCheck: How to check if Java 6 is installed on 10.5?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstallationCheck: How to check if Java 6 is installed on 10.5?


  • Subject: Re: InstallationCheck: How to check if Java 6 is installed on 10.5?
  • From: Ovidiu Bivolaru <email@hidden>
  • Date: Thu, 27 May 2010 21:34:41 +0300

I think you should check for /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java and use this version if exists.

Regards,
Ovidiu

On 5/27/10 12:18 AM, Xochitl Lunde wrote:

I need to fix it so the script will succeed in a command line installation if Java 1.6 is installed.  What is the right way to check if Java 6 is installed?  I am getting my error string #21 when doing a command line installation on Leopard using 'sudo' or if I use ARD to remote install.  The second check for the java-version on the command line works fine for GUI installation, and will even error out if Java 6 is not enabled for that user.

What I maybe want to do is... instead of erroring out with string 21, if I am the root user on OSX 10.5, then I want to check if Java 6 is 'installed' on this machine, since it won't be the version that runs when I'm root to test against.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Install file only if it exists on target?
      • From: "Andrew Peckover" <email@hidden>
References: 
 >InstallationCheck: How to check if Java 6 is installed on 10.5? (From: Xochitl Lunde <email@hidden>)

  • Prev by Date: Re: Problems going from PackageMaker 3.0.3 to 3.0.4
  • Next by Date: Install file only if it exists on target?
  • Previous by thread: InstallationCheck: How to check if Java 6 is installed on 10.5?
  • Next by thread: Install file only if it exists on target?
  • Index(es):
    • Date
    • Thread