Currently on Linux Worksnaps Client can run on Oracle Java environment. If your Java environment is OpenJDK, Worksnaps Client might not be able to run well. Please use the following instruction to set up Oracle Java environment on your Linux system. 


1. Check current Java version


If the Java has been installed on your machine, please check the Java version using the following command (Figure 1). If you see OpenJDK, then you need to change to Oracle Java. 


$java -version  


 Figure 1 

 


2. Download and Install Oracle JRE


(2a) Download Java from http://www.java.com. Click "Free Java Download" to enter download page (Figure 2).


 Figure 2 


 

(2b) Download JRE package, such as “jre-8u66-linux-x64.tar.gz”, don't download RPM package (If your machine is 64-bit, please download Linux x64. Worksnaps client can work on both 32-bit and 64-bit Oracle Java).(Figure 3).


 Figure 3 


(2c) Unpack the tarball and install Java


Enter Java package download directory and unpack. In this example, the Java package is "jre-8u66-linux-x64.tar.gz".(Figure 4).


$tar -xzvf jre-8u66-linux-x64.tar.gz 


 Figure 4 


3. Config Java Environment


(3a) Enter /etc/alternatives directory, remove the old java  (Figure 5)



 Figure 5 


(3b) Create a soft link to link java to Oracle Java.(Figure 6) (In this example, Oracle Java is installed at path /home/sky/Downloads/jre1.8.0_66/bin/java)

 Figure 6 



(3c) Check Java Environment


Please check java environment by running command "java -version" to make sure that you are using Oracle Java (Figure 7). The output should not contain string "OpenJDK" anymore. 

 Figure 7 


4. Download and Install Worksnaps Client (if you have not done so). Then run Worksnaps client (Figure 8).


$./run.sh


 Figure 8