JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for STARLINK Archives


STARLINK Archives

STARLINK Archives


STARLINK@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

STARLINK Home

STARLINK Home

STARLINK  April 2015

STARLINK April 2015

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Starlink Software Collection: 2015A Release

From:

Norman Gray <[log in to unmask]>

Reply-To:

Starlink Software User Support <[log in to unmask]>

Date:

Fri, 10 Apr 2015 09:12:24 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (128 lines)

Mark and Sarah, hello.

> On 2015 Apr 9, at 22:41, Mark Taylor <[log in to unmask]> wrote:
> 
>> The starjava script (installed into $STARLINK_DIR/starjava/bin/starjava) has
>> a list of locations it checks for java, so we can always tweak the order of
>> that if needed? Or set a different set of places to look on OS X than we do on
>> Linux.
> 
> That may be a good idea.

I have not had to understand the OS X and Java story for some years, now, so I can add very little that's authoritative to this discussion.

However neither of you has so far mentioned /usr/libexec/java_home, which _I think_ is the currently-preferred mechanism for finding just where Apple/Oracle/forces-of-chaos have squirrelled your JVM this week.  The Oracle downloads seem to integrate with that mechanism in the correct fashion.  I've included the relevant man page below for Mark's benefit.

The documentation I can find  <https://developer.apple.com/library/mac/qa/qa1170/_index.html> seems to suggest that it all just works by magic, but google suggests that this hasn't purged the world of people asking about 'java_home'.

Bon chance,

Norman





java_home(1)							  java_home(1)



NAME
       java_home - return a value for $JAVA_HOME


SYNOPSIS
       /usr/libexec/java_home [options]


DESCRIPTION
       The java_home command returns a path suitable for setting the JAVA_HOME
       environment variable.  It determines this path from the user's  enabled
       and  preferred  JVMs  in  the Java Preferences application.  Additional
       constraints may be provided to filter the list of JVMs  available.   By
       default,  if  no  constraints  match  the  available  list of JVMs, the
       default order is used.  The path is printed to standard output.


OPTIONS
       -v or --version	version
	      Filters the returned JVMs  by  the  major  platform  version  in
	      "JVMVersion" form. Example versions: "1.5+", or "1.6*".


       -a or --arch  architecture
	      Filters  the  returned  JVMs  by	the architecture they support.
	      Example architectures: "i386", "x86_64", or "ppc".


       -d or --datamodel  datamodel
	      Filters the returned JVMs capable of running  in	32  or	64-bit
	      mode.  Supported	datamodels:  "-d32"  and  "-d64". Specifying a
	      datamodel is synonymous with specifying a  particular  architec-
	      ture.


       -t or --task  task
	      Selects from the list of JVMs which can run a specific task. The
	      order of each of these lists is  set  by	the  Java  Preferences
	      application.   Supported	tasks:	"Applets",  "WebStart",  "Bun-
	      dledApp", "JNI" and "CommandLine". The default task is "Command-
	      Line".


       -F or --failfast
	      Immediately  fails  when	filters return no JVMs; does not print
	      out the path to the default $JAVA_HOME.


       --exec  command ...
	      Executes the command at $JAVA_HOME/bin/<command> and passes  the
	      remaining arguments. Any arguments to select which $JAVA_HOME to
	      use must precede the --exec option.


       -X or --xml
	      Prints the list of selected JVMs and associated properties as an
	      XML plist to stdout.


       -V or --verbose
	      Prints the matching list of JVMs and architectures to stderr.


       -h or --help
	      Brief usage information.


USAGE
       /usr/libexec/java_home  helps  users set a $JAVA_HOME in their login rc
       files, or provides a way for command-line Java tools to	use  the  most
       appropriate  JVM  which	can  satisfy a minimum version or architecture
       requirement. The --exec argument  can  invoke  tools  in  the  selected
       $JAVA_HOME/bin  directory,  which  is useful for starting Java command-
       line tools from launchd plists without hardcoding the full path to  the
       Java command-line tool.


       Usage for bash-style shells:
	      $ export JAVA_HOME=`/usr/libexec/java_home`

       Usage for csh-style shells:
	      % setenv JAVA_HOME `/usr/libexec/java_home`




				04 August 2010			  java_home(1)



-- 
Norman Gray  :  http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK

----
Starlink User Support list
For list configuration, including subscribing to and unsubscribing from the list, see
https://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=STARLINK

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

December 2023
November 2023
August 2023
July 2023
May 2023
April 2023
March 2023
February 2023
January 2023
November 2022
October 2022
August 2022
July 2022
June 2022
April 2022
January 2022
December 2021
October 2021
May 2021
February 2021
November 2020
October 2020
August 2020
July 2020
June 2020
February 2020
November 2019
October 2019
September 2019
July 2019
June 2019
May 2019
April 2019
March 2019
December 2018
November 2018
October 2018
September 2018
July 2018
June 2018
April 2018
January 2018
December 2017
October 2017
August 2017
July 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
September 2016
July 2016
June 2016
April 2016
March 2016
February 2016
December 2015
November 2015
October 2015
September 2015
May 2015
April 2015
March 2015
February 2015
October 2014
August 2014
July 2014
June 2014
May 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
January 2007
November 2006
October 2006
September 2006
August 2006
July 2006
April 2006
March 2006
February 2006
December 2004
September 2004


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager