Clarity

  • 1.  Warning: JAVA_HOME is not defined correctly.

    Posted Jun 21, 2012 06:35 AM
    Hi fellow Clarity soldiers,

    i have another issue with Clarity r13 on RHel, it's probably not a biggie, but annoying to see it all the time...

    -when i use:
    $ sudo ./service status all
    -result is:
    Warning: JAVA_HOME is not defined correctly.
    Cannot execute /bin/java.
    CA Clarity PPM Beacon [beacon] is running: PID:27443, Wrapper:STARTED, Java:STARTED
    CA Clarity PPM System Admin Server [nsa] is running: PID:27909, Wrapper:STARTED, Java:STARTED
    $ echo $JAVA_HOME
    /usr/java/default
    $ java -version
    java version "1.6.0_31"
    Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
    services are running , everything is fine - why there's a warning about JAVA_HOME being not defined correctly?

    Regards,
    Michal


  • 2.  RE: Warning: JAVA_HOME is not defined correctly.

    Posted Jun 21, 2012 08:01 AM
    Set Up the Server
    This section describes the operating system settings and third-party software products that are required before you can install or upgrade CA Clarity PPM.

    Set Up Unix User Accounts
    All Unix servers in the cluster must have a user account dedicated to CA Clarity PPM. The user can have any name. However, the user is referred to as the niku user.
    Follow these steps:
    1. Open the niku.profile file.
    2. Export the JAVA_HOME environment variable in the niku.profile file:
    JAVA_HOME=<JDK 1.6 home directory>
    export JAVA_HOME
    NLS_LANG=AMERICAN_AMERICA.UTF8
    export NLS_LANG
    3. (Optional but recommended) Add the following to the niku.profile file:
    ORACLE_HOME=<Oracle home directory>
    export ORACLE_HOME
    NIKU_HOME=<clarity home directory>
    export NIKU_HOME
    PATH=$PATH:$JAVA_HOME/bin:$NIKU_HOME/bin:$ORACLE_HOME/bin
    export PATH
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/bin
    export LD_LIBRARY_PATH
    4. Save the changes and close the file.
    Your changes are saved.
    5. Log out and then log back in again to verify the changes.


    Set Windows System Variables
    Add or update the following Windows operating system variables in the Windows System Control Panel:
    JAVA_HOME
    Must point to the directory where the Java SDK is installed.
    Default: D:\jdk1.6.0_xx
    NIKU_HOME
    Must point to the directory where CA Clarity PPM is to be installed.
    Default: <current directory>
    PATH
    Must include the \bin directories within the Java home and CA Clarity PPM home directories.
    Default: %JAVA_HOME%\bin;%NIKU_HOME%\bin;<existing path>
    Note: After modifying the system environment, open a new command prompt (cmd.exe) before installing CA Clarity PPM.
    Do the following to set the NLS_LANG property:
    ■ On Windows NT servers with Oracle databases, in the registry key HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/HOME0 set:
    NLS_LANG ==> "AMERICAN_AMERICA.UTF8"
    ■ For Oracle 10g and later, the registry key is as follows:
    HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/KEY_<oracle_home_name>
    Where, oracle_home_name includes an entry with name NLS_LANG.


    NJ


  • 3.  RE: Warning: JAVA_HOME is not defined correctly.

    Posted Jun 21, 2012 09:14 AM
    Eh, well - i have everything set according to CA Installation guide. As you may see from code i posted above - JAVA_HOME is set (yes, .bash_profile is ok) but still odd message appears, even when all commands are executed correctly.


  • 4.  RE: Warning: JAVA_HOME is not defined correctly.

    Posted Jun 27, 2012 07:20 AM
    It's the same in our envirnment but we got Clarity 12.0.6. Everything is fine but get the JAVA_HOME warning...