原文出处:
Install Sun Java Runtime
As Free PDF Reader is a Java application, you first need Sun Java Runtime installed in your Linux computer. If you do not already have it, you can install by following these steps.
- Download Self-extracting Java Runtime installer from
http://www.java.com/en/download/manual.jsp
to yourDownloads folder.
- Open Terminal (from the menu Applications » Accessories).
- Create a directory named java.
sudo mkdir /usr/java
- Copy the self-extracting installer to that directory.
sudo cp ~/Downloads/jre*.bin /usr/java
- Navigate to the directory.
cd /usr/java
- After ensuring that this folder does not contain any files or folder, execute the installer.
sudo sh ./jre*.bin
- Create a link to the java executable in /usr/bin
sudo ln -s /usr/java/jre*/bin/java /usr/bin/java
After doing the above, you can check your Java installation by typing the commandjava -version
. Some Linux distributions do not have the sudo
facility. If that's the case with your installation, then run the shell with root privileges and omit sudo from the above commands.