Diff for "Java"


Differences between revisions 1 and 103 (spanning 102 versions)
Revision 1 as of 2005-08-01 18:38:33
Size: 337
Editor: 81-178-92-192
Comment: recreating: still needs work to point out how to add the right repository, etc
Revision 103 as of 2008-06-28 16:59:55
Size: 2226
Editor: 75-169-131-50
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Java for i386 == ||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''<<BR>><<TableOfContents>>||
Line 3: Line 3:
Type the following in a terminal (requires the hoary-extras repository): Sun Microsystems have developed Java, which is many things depending on who you ask. It is a language, and an execution environment and probably many more things. On this page Java refers to the software that executes programs compiled to Java byte codes (akin to machine language).
Line 5: Line 5:
{{{
    apt-get install sun-j2re1.5
}}}
== Running Java under Ubuntu ==
Line 9: Line 7:
This will configure the Firefox Java plugin.
    
== Java on other Architechtures ==
In order to run Java programs and Java applets, you must have a Java environment installed. The GCJ flavor of Java is installed as default, and is usually fine for most purposes. If it is not installed, See JavaInstallation for details about installation of opensource flavors of Java.. You may, however, have a need to run the Sun flavor of Java if something does not work correctly.
Line 13: Line 9:
Ubuntu PPC, please see: ["JavaPPC"].
Ubuntu AMD64, please see: ["JavaAMD64"].
----
CategoryCleanup
To get Sun Java under Ubuntu 7.04 or later running on Intel or PowerPC platform, you should enable the Universe repository in Add/Remove programs, and install either the {{{openjdk-6-jre}}} package or the {{{sun-java6-bin}}} package. (Note: PowerPC version is slow).

To get Sun Java under Ubuntu 6.06 or 6.10 running on Intel x86 platform, you should enable the Universe repository in Add/Remove programs, and install the {{{sun-java5-bin}}} package.

Note: The same commands will work under Xubuntu/Kubuntu (using Add/Remove or the Adept Package Installer).
 

== Choosing the default Java to use ==

Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this:

 * Open a Terminal window
 * Run {{{sudo update-java-alternatives -l}}} to see the current configuration and possibilities.
 * Run {{{sudo update-java-alternatives -s XXXX}}} to set the XXX java version as default. For Sun Java 6 this would be {{{sudo update-java-alternatives -s java-6-sun}}}
 * Run {{{java -version}}} to ensure that the correct version is being called.

You can also use the following command to interactively make the change;

 * Open a Terminal window
 * Run {{{sudo update-alternatives --config java}}}
 * Follow the onscreen prompt

----
CategoryDocumentation

Sun Microsystems have developed Java, which is many things depending on who you ask. It is a language, and an execution environment and probably many more things. On this page Java refers to the software that executes programs compiled to Java byte codes (akin to machine language).

Running Java under Ubuntu

In order to run Java programs and Java applets, you must have a Java environment installed. The GCJ flavor of Java is installed as default, and is usually fine for most purposes. If it is not installed, See JavaInstallation for details about installation of opensource flavors of Java.. You may, however, have a need to run the Sun flavor of Java if something does not work correctly.

To get Sun Java under Ubuntu 7.04 or later running on Intel or PowerPC platform, you should enable the Universe repository in Add/Remove programs, and install either the openjdk-6-jre package or the sun-java6-bin package. (Note: PowerPC version is slow).

To get Sun Java under Ubuntu 6.06 or 6.10 running on Intel x86 platform, you should enable the Universe repository in Add/Remove programs, and install the sun-java5-bin package.

Note: The same commands will work under Xubuntu/Kubuntu (using Add/Remove or the Adept Package Installer).

Choosing the default Java to use

Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this:

  • Open a Terminal window
  • Run sudo update-java-alternatives -l to see the current configuration and possibilities.

  • Run sudo update-java-alternatives -s XXXX to set the XXX java version as default. For Sun Java 6 this would be sudo update-java-alternatives -s java-6-sun

  • Run java -version to ensure that the correct version is being called.

You can also use the following command to interactively make the change;

  • Open a Terminal window
  • Run sudo update-alternatives --config java

  • Follow the onscreen prompt


CategoryDocumentation

Java (last edited 2015-07-24 22:21:28 by 208)