Users download Linux software applications as "package files" created by application developers. A package file contains all data and code files needed by the application in question, plus the scripts that install, set up, and uninstall it. To download and install package files users execute special administrative commands. You can install and set up the Java development environment and Jetty (a web server written entirely in Java) on your Linux server.
- Skill level:
Log in to the computer as user "root." Launch a command shell, either by logging in text mode or by launching a Terminal window from the graphical desktop.
Download and install the Java development environment and Jetty. The specific commands required for this depend on the Linux distribution running on your server. For example, for Ubuntu Linux type the following command into the shell:
apt-get install openjdk-6-jre openjdk-6-jdk jetty
Press "Enter." Ubuntu will download all three packages (Java runtime, Java development environment, and Jetty) plus any other packages required by them but not yet installed on your system. The "apt-get" command will then execute the installation and initialisation scripts for all downloaded packages, in the right sequence to preserve inter-package dependencies.
Open existing file "/etc./environment" with a text editor. Add the following:
at the end of the value assigned to variable PATH on the line that begins with "PATH=". Save the file and exit the text editor.
Type the following commands into the shell:
ln -s /etc/init.d/jetty.sh s20jetty.sh
Press "Enter" at the end of each line.
Reboot the computer. When your server finishes booting Jetty will be running--and it will always be started automatically during the Linux boot process.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for