~ubuntu-branches/ubuntu/oneiric/openjdk-7/oneiric-security

« back to all changes in this revision

Viewing changes to debian/README.alternatives.in

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-10-17 16:22:48 UTC
  • mfrom: (1.3.11) (8.1.25 quantal)
  • Revision ID: package-import@ubuntu.com-20121017162248-steblyv2lnk2t951
Tags: 7u9-2.3.3-0ubuntu1~11.10.1
Build IcedTea7 2.3.3 for oneiric.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
Starting with java-common 0.23ubuntu1, the update-java-alternatives
8
8
script can be used to set a bunch of jre/jdk alternatives:
9
9
 
10
 
- Set all runtime tools to point to the @basename@ alternatives:
11
 
 
12
 
  update-java-alternatives --jre --set @jdirname@
13
 
 
14
 
- Set all runtime tools (headless only) to point to the @basename@
15
 
  alternatives:
16
 
 
17
 
  update-java-alternatives --jre-headless --set @jdirname@
18
 
 
19
 
- Set all runtime and development tools to point to the @basename@
20
 
  alternatives:
21
 
 
22
 
  update-java-alternatives --set @jdirname@
 
10
First, you have to decide which Java implementation to default to.
 
11
 
 
12
  update-java-alternatives --list
 
13
 
 
14
tells about the available runtime and/or development environments. The
 
15
first column shows the names to be used in for the following examples.
 
16
 
 
17
- Set all runtime tools to point to the <jname> alternatives:
 
18
 
 
19
  update-java-alternatives --jre --set <jname>
 
20
 
 
21
- Set all runtime tools (headless only) to point to the <jname>
 
22
  alternatives:
 
23
 
 
24
  update-java-alternatives --jre-headless --set <jname>
 
25
 
 
26
- Set all runtime and development tools to point to the <jname>
 
27
  alternatives:
 
28
 
 
29
  update-java-alternatives --set <jname>
23
30
 
24
31
- Set all runtime and development tools to auto mode:
25
32