Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Get Download the required files from the Installer Repo:https://bitbucket.pcr.com/projects/PCR/repos/install360/browse/lib?at=refs%2Fheads%2Fcentos8:
    1. View file
      nameopenjdk.crystal.tar.gz
      height250
    2. View file
      namecrystal.tar.gz
      height250
  2. Install Open JDK Java

    Code Block
    #install# openInstall jdkOpenJDK
    dnfyum install wget;
    wget https://download.java.net/java/GA/jdk12.0.1/69cfe15208a647278a19ef0990eea691/12/GPL/openjdk-12.0.1_linux-x64_bin.tar.gz
    tar xvf openjdk-12.0.1_linux-x64_bin.tar.gz
    mv jdk-12.0.1 /usr/lib/
    
    # set the java version
    cat <<EOF | sudo tee /etc/profile.d/jdk12.sh
    export JAVA_HOME=/usr/lib/jdk-12.0.1
    export PATH=\$PATH:\$JAVA_HOME/bin
    EOF
    source /etc/profile.d/jdk12.sh
    echo $JAVA_HOME
    
    # make a symbolic link for the dumb command pcr360 is using
    mkdir -p /usr/java/latest/bin
    ln -s /usr/lib/jdk-12.0.1/bin/java /usr/java/latest/bin/java
    


  3. Install the PCR-360 Crystal Reports (if migrating, skip this step as it will be copied over with the customer data)

    Code Block
    # extract the crystal library
    tar -xzvf crystal.tar.gz -C /var/www/pcr360/prod/external/
    
    #set file permissions
    chmod 644 -R /var/www/pcr360/prod/external/crystal.jar /var/www/pcr360/prod/external/lib/ chmod 755 /var/www/pcr360/prod/external/lib
    
    #
    set file ownership
    chown -R ${APACHE_USER}:root /var/www/pcr360/prod/external/crystal.jar /var/www/pcr360/prod/external/lib/


  4. Overwrite the Original JAR with the one altered for OpenJDK (if migrating, this step should be performed after copying the customer data)

    Code Block
    # overwrite the crystal.jar with the altered one
    tar -xzvf ./lib/openjdk.crystal.tar.gz
    rm -f ${INSTALL_PATH}/external/crystal.jar
    mv crystal.jar ${INSTALL_PATH}/external/
    chmod 644 -R ${INSTALL_PATH}/var/www/pcr360/prod/external/crystal.jar
    rm -f ${INSTALL_PATH_TEST}/external/crystal.jar
    mv crystal.jar ${INSTALL_PATH_TEST}/external/
    chmod 644 -R ${INSTALL_PATH_TEST}/external/crystal.jar/var/www/pcr360/prod/external/
    
    # install the required fonts (these are included in the openjdk.crystal.tar.gz archive)
    tar -xzvf fonts.tar.gz
    mv fonts /usr/lib/jdk-12.0.1/lib/
    fc-cache -rv


  5. Set File Permissions (if migrating, this step should be performed after copying the customer data)

    Code Block
    #set file permissions
    chmod 644 -R /var/www/pcr360/prod/external/crystal.jar
    chmod 755 /var/www/pcr360/prod/external/lib
    
    # set file ownership
    chown -R apache:root /var/www/pcr360/prod/external/crystal.jar /var/www/pcr360/prod/external/lib/