Open JDK 12 (recommended)
- Required files (click to download)
Install Java
# download and install the library 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 #verify the install was successful echo $JAVA_HOME java -version # make a symbolic link for the command pcr360 is using mkdir -p /usr/java/latest/bin ln -s /usr/lib/jdk-12.0.1/bin/java /usr/java/latest/bin/javaCode Block Install Crystal Reports
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/ # overwrite the crystal.jar with the altered one for OpenJDK tar -xzvf ./lib/openjdk.crystal.tar.gz rm -f /var/www/pcr360/prod/external/crystal.jar mv crystal.jar /var/www/pcr360/prod/external/ chmod 644 -R /var/www/pcr360/prod/external/crystal.jar # install the required fonts tar -xzvf fonts.tar.gz mv fonts /usr/lib/jdk-12.0.1/lib/ fc-cache -rv
Oracle Java 8 (not recommended)
This library is outdated and not recommended. The newer versions are no longer open source and may not be used without a license.
- Required files (click to download)
Install Java
Code Block dnf -y localinstall jdk-8u60-linux-x64.rpm ln -sfn /usr/java/jdk1.8.0_60/bin/java /usr/bin/java ls -la /usr/bin/java
Install the Crystal Reports
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/libli # set file ownership chown -R ${APACHE_USER}:root /var/www/pcr360/prod/external/crystal.jar /var/www/pcr360/prod/external/lib/