Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How can I install Sun/Oracle's proprietary Java 6/7 JRE or JDK?

I want to make server with Xubuntu but i don't know anything about Linux, So is there any software which can install Java Jre 7 automatically. -Windows uses too Much Ram-

share|improve this question

marked as duplicate by SirCharlo, stephenmyall, RobotHumans, Thomas Ward, belacqua Aug 24 '12 at 18:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I think this is what you want. Run the following command in Terminal.

sudo apt-get install openjdk-7-jre

Quick tip

When you're searching for a program like this, try the following command:

apt-cache search keywords here

So for instance,

apt-cache search jre 7

Gives this:

icedtea-7-jre-jamvm - Alternative JVM for OpenJDK, using JamVM
openjdk-7-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-7-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-7-jre-lib - OpenJDK Java runtime (architecture independent libraries)
openjdk-7-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark

You may then use common sense to figure out which package to install.

share|improve this answer
+1 for "apt-cache search" – Aaron Aug 23 '12 at 15:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.