Where is java_home detected from by the installer?

Jon Agland Jon.Agland at jisc.ac.uk
Mon Jul 17 07:53:23 EDT 2017


Hi Dave,

My experience is that it will detect the location from the OS
environment [after all you have to setup JAVA_HOME 'System Variable' on
Windows]

Just looking at two *nix systems that I have access to [Ubuntu and
RHEL]

In both cases putting an executable script like 'java.sh' (remember to
chmod +x) into /etc/profile.d would seem to work.   

JAVA_HOME=/path/to/java
export JAVA_HOME

You could test this by executing the above command line before
installing, but it will likely be lost after reboot/new shell session
etc...

Also worth noting that Tomcat appears to be able to have JAVA_HOME
defined in the startup configuration [it was in /etc/default/tomcat8 on
Ubuntu and /etc/sysconfig/tomcat on RHEL]

If you set it in Tomcat (or Jetty), then I suspect you could have
issues using the command line tools in /bin such as aacli.sh and
status.sh, so I'd check if setting via profile.d is possible first... 

Cheers,

Jon


Jon Agland
Principal UK federation technical support specialist
Jisc
T 02038198207
M 07443984222
Skype jon_agland
Twitter @jon_agland
Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG

jisc.ac.uk
ukfederation.org.uk
 
Jisc is a registered charity (number 1149740) and a company limited by
guarantee which is registered in England under Company No. 5747339, VAT

No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower
Hill, Bristol, BS2 0JA. T 0203 697 5800.
 
Jisc Services Limited is a wholly owned Jisc subsidiary and a company
limited by guarantee which is registered in England under company
number 2881024, VAT number GB 197 0632 86. The registered office is:
One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.

On Mon, 2017-07-17 at 11:31 +0000, Dave Perry wrote:
> Where does JAVA_HOME get detected from by the installer?
> I updated java (removed old version, installed new one) on SLES 11,
> went fine, then ran the Shibboleth upgrade script and it complained
> that the path for java_home didn’t work. It still has the old version
> in.
>  
> I’ve edited /etc/profile.local to have the correct path (someone
> advised putting /usr/java/latest, which links to it automatically)
> but it still is asking for the old version specifically.
>  
> I can’t see from the code where it’s being a detected. A reboot
> doesn’t seem to have fixed it either.
>  
> Thanks,
> Dave
>  
>  
> _________________________________________________
> Dave Perry
> eLearning Technologist, Hull College Group (Monday – Thursday)
> 
> Room L34 - Queens Gardens Library
> Wilberforce Drive, Queen's Gardens, Hull, HU1 3DG
> Extension 2230 / Direct Dial 01482 381930
>  
> * Need a fast reply? Try elearning at hull-college.ac.uk *
>  
> Click here to view the College's range of publications celebrating
> staff and student successes 
> 
> This message is sent in confidence for the addressee  only.  It may
> contain confidential or sensitive  information.  The contents are not
> to be disclosed  to anyone other than the addressee.  Unauthorised 
> recipients are requested to preserve this  confidentiality and to
> advise us of any errors in  transmission.  Any views expressed in
> this message  are solely the views of the individual and do not 
> represent the views of the College.  Nothing in this  message should
> be construed as creating a contract.
> 
> Hull College Group owns the email infrastructure, including the
> contents.
> 
> Hull College Group is committed to sustainability, please reflect
> before printing this email.
> -- 
> To unsubscribe from this list send an email to users-unsubscribe at shib
> boleth.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5412 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/users/attachments/20170717/45647e14/attachment.bin>


More information about the users mailing list