• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
The Electric Toolbox Blog

The Electric Toolbox Blog

Linux, Apache, Nginx, MySQL, Javascript and PHP articles

  • Applications
  • FCKEditor
  • Apache
  • Windows
  • Contact Us
Home / Install Java on the command line with Debian

Install Java on the command line with Debian

If it was nice and intuitive to install Java on Debian (and other Debian based distros such as Ubuntu), I wouldn’t need to write this post because it would just be "apt-get install java". But no, I always forget what I need to install, hence this post…

Install openjdk-7-jre or openjdk-7-jre-headless

If you just want to install the runtime so you can run Java applications, install either openjdk-7-jre or openjdk-7-jre-headless. The first one will install a bunch of Gnome stuff if not already installed, so if you are doing this on a server without a GUI then install openjdk-7-jre-headless.

sudo apt-get install openjdk-7-jre

OR

sudo apt-get install openjdk-7-jre-headless

Right, now maybe I’ll remember this next time 🙂

This is correct for (at least) Debian 7 & 8, possibly older versions, probably future versions, and possibly other Debian based distributions.

Check Out These Related posts:

  1. Minify Javascript and CSS with YUI Compressor
  2. Troubleshooting errors with Yahoo’s YUI Compressor
  3. Java error executing Zend Studio
  4. Stop Debian “info: mpt raid status change on debian” emails when you don’t have RAID

Filed Under: Linux/Unix/BSD

Primary Sidebar

Categories

  • Apache
  • Applications
  • Article
  • Case Studies
  • Email Servers
  • FCKEditor
  • HTML And CSS
  • Javascript
  • Linux/Unix/BSD
  • Microsoft SQL Server
  • Miscellaneous Postings
  • MySql
  • Networking
  • Nginx Web Server
  • Offsite Articles
  • OSX
  • PHP
  • Quick Tips
  • RFC – Request for Comments
  • SilverStripe
  • VMWare
  • VPN
  • Windows
  • WordPress

Recent Posts

  • Vim Show Line Numbers
  • Add User To Group Linux
  • Chmod 777 Tutorial
  • How to Copy Directory Linux
  • Linux create user

Copyright © 2021. ElectricToolBox. All Rights Reserved.

  • Contact Us
  • Copyright Info
  • Privacy Policy
  • Sitemap