Warning: Declaration of syntax_plugin_translation::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /home/www/readm3.org/lib/plugins/translation/syntax.php on line 55

Warning: Declaration of syntax_plugin_translation::render($format, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /home/www/readm3.org/lib/plugins/translation/syntax.php on line 62
app:java-runtime-environment:start - readm3.org - IT wiki

This is an old revision of the document!


Java Runtime Environment (JRE)

The Java Runtime Environment (JRE) is needed to run Java applications.

The JRE does not contain development tools. You need the Java Development Kit (JDK) or a comparable solution to develop Java applications.

Terms

JRE

Java Runtime Environment. Needed to run Java applications on your platform. There are Open Source JREs and the “original” JRE by Oracle (former Sun Microsystems).

JVM

Java Virtual Machine. Part of the JRE, executes the Java code you want to run.

JDK

Java Development Kit (JDK). A development tool needed by programmers to compile Java programs. The JDK brings the complete JRE – if you want to install the JDK, there is no need to install the JRE separately. There are Open Source JDKs and the “original” JDK by Oracle (former Sun Microsystems).

Java SDK

Java Software Development Kit, a synonym for the JDK.

Installation

If you want to develop Java Applications, have a look at the Java Development Kit (JDK).

Ubuntu

10.04 Lucid and above

You can choose between two1) Open Source JREs and the “original” JRE by Oracle (former Sun Microsystems).

If you don't know which JRE to choose, take the one by Oracle/Sun to be on the safe side – some rare applications simply do not work without the proprietary one. Additionally, some users may have to run applications which are certified for the Oracle JRE only, loosing support if they use another JRE.

Oracle Java (former Sun Java)

If not already done, you have to add the partner repository first.

Simply install the following package(s):

There are some additional packages, providing special functionality:

  • sun-java6-plugin (partner) – Java plugin for your webbrowser. Needed to run Java Applets on websites.
OpenJDK

Simply install the following package(s):

Windows

XP and above

The only really usable JRE on Windows systems is the proprietary JRE by Oracle (sometimes called “Java SE Runtime Environment”). Simply download the Windows installer and run it with administrator privileges.

Look out for the Yahoo!-Browser-Toolbar or other software you may not want. The Java installer tries to install such 3rd party components by default. This is also important for Java Updates. (state: 2010-07-06)

Tips and tricks

Choosing the default JRE (Ubuntu Linux)

Even it is not recommended to install more than one JRE, it is possible to have e.g. the OpenJDK JRE and Oracle Java JRE installed at the same time on the same machine. To choose the default one called by java on your command line, run the following:

sudo update-alternatives --config java
1)
OpenJDK and GNU Java. I do not cover GNU Java on this page cause OpenJDK's JRE simply works better in my experience.
Print/export
QR Code
QR Code app:java-runtime-environment:start (generated for current page)
Languages
Translations of this page: