How can the CA Spectrum OneClick client be forced to use either the 32bit or 64bit java jre when both 32bit and 64 bit java are installed?
search cancel

How can the CA Spectrum OneClick client be forced to use either the 32bit or 64bit java jre when both 32bit and 64 bit java are installed?

book

Article ID: 16376

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

When both a 32bit and 64bit java jre client are installed on the same machine and you launch the CA Spectrum OneClick client, java will default to the last installed version.  If you installed 64bit java jre, and then installed a 32bit java jre, when you launch the OneClick client, the 32bit jre will be used.   If you installed 32bit java jre, and then installed a 64bit java jre, when you launch the OneClick client, the 64bit jre will be used.  

How can OneClick be forced to use either the 32bit or the 64bit java?

Environment

Release: SDBSFO99000-10.2-Spectrum-Device Based Suite-Server FOC
Component:

Resolution

Functionality has been added in Spectrum version 10.2.2 to allow the java configuration for 32bit/64bit clients to work.  First you will need to upgrade to Spectrum 10.2.2 or greater.  Then you need to configure the <resources> tag in the  $SPECROOT/tomcat/webapps/spectrum/oneclick.jnlp file as noted in the file:

<!-- If you wish to force 64bit or 32bit OC client, replace <resources> tag with one that

         specifies an architecture - "amd64" for x64 and "x86" for x32, see below examples.

 

         You can copy oneclick.jnlp to oneclick32.jnlp or oneclick64.jnlp, and customize platform & memory,

         and then new launch points will be added automatically to OC admin page.

 

Note: For arch specifiers to work properly, you must exactly match the JRE version or make sure the "Allow new versions" checkbox is checked in the supported JRE Version configuration.

 

  <resources arch="amd64"> 

  <resources arch="x86">

    -->

<resources arch="amd64">
  <j2se version="1.8.0_112+" href="http://java.sun.com/products/autodl/j2se"
Initial-heap-size="96m" max-heap-size="2048m"/>