/[gentoo-dk]/gentoo-dk/pre1/java.xml
ViewVC logotype

Diff of /gentoo-dk/pre1/java.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mejlholm, Tue Nov 18 23:39:12 2003 UTC revision 1.4 by mejlholm, Wed Nov 19 16:46:18 2003 UTC
# Line 1  Line 1 
1  <?xml version='1.0' encoding="UTF-8"?>  <?xml version='1.0' encoding="iso-8859-1"?>
2  <!-- $Header$ -->  <!-- $Header$ -->
3  <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">  <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4    
5  <guide link = "/doc/en/java.xml">  <guide link = "/doc/da/java.xml">
6          <title>Gentoo Java Guide</title>          <title>Gentoo Java Guide</title>
7          <author title="Author and Editor">          <author title="Forfatter og Redaktør">
8          <mail link="karltk@gentoo.org">Karl Trygve Kalleberg</mail>          <mail link="karltk@gentoo.org">Karl Trygve Kalleberg</mail>
9          </author>          </author>
10    <author title="Editor">    <author title="Redaktør">
11      <mail link="swift@gentoo.org">Sven Vermeulen</mail>      <mail link="swift@gentoo.org">Sven Vermeulen</mail>
12    </author>    </author>
13      <author title="Redaktør">
14        <mail link="mejlholm@stud.auc.dk">Arne Mejlholm</mail>
15      </author>
16    
17          <abstract>          <abstract>
18          Users' and Developers' Guide to Java in Gentoo          Brugere og udvikleres guide til Java under Gentoo
19          </abstract>          </abstract>
20    
21      <license/>      <license/>
# Line 21  Line 24 
24          <date>November 16, 2003</date>          <date>November 16, 2003</date>
25    
26                  <chapter>                  <chapter>
27                  <title>Installing a JDK/JRE</title>                  <title>At installere en JDK/JRE</title>
28                          <section>                          <section>
29                                  <title>Overview</title>                                  <title>Overblik</title>
30                                  <body>                                  <body>
31                                                                    
32                          <p>Gentoo provides numerous JDKs and JREs. The default is the                          <p>
33                          Blackdown JDK/JRE pair, as it is freely (beer) available without any                          Gentoo giver dig talrige JDK'er og
34                          registration fuss.                          JRE're. Standard er Blackdown JDK/JRE sættet,
35                            som er frit tilgængelige <!--  as it is freely
36                            (beer) available --> uden nogen form for
37                            registrerings halløj.
38                          </p>                          </p>
39    
40                          <note>As kaffe becomes a JRE/JDK drop-in replacement, that will most                          <note>Når kaffe med tiden bliver en JRE/JDK en
41                          likely become our default.                          nem udskiftning, bliver den højest
42                            sandsynligvis standarden.
43                          </note>                          </note>
44    
45                          <p>Both the Sun JDK/JRE and the IBM JDK/JRE are generally faster, but                          <p>Både Sun JDK/JRE og IBM JDK/JRE er generelt
46                          getting them is a bit more work, as you are required to read and                          hurtigere, men at få fat i dem er lidt
47                          accept their license before downloading (IBM additionally requires you                          sværere, da du kræves at læse og acceptere
48                          to register).                          deres licens før at du downloader (IBM kræver
49                            derudover at du registrer dig).
50                          </p>                          </p>
51    
52                          <p>Our ebuilds for the Sun and IBM JDK/JREs will notify you of where                          <p>Vores ebuilds til Sun og IBM JDK/JRE
53                          to go to download them.                          fortæller dig hvor du skal gå hen for at
54                            downloade dem.
55                          </p>                          </p>
56                                                    
57                          </body>                          </body>
58                  </section>                  </section>
59    
60                  <section>                  <section>
61                          <title>Installing the Sun/IBM JDK/JREs</title>                          <title>Installering af Sun/IBM JDK/JREs</title>
62                          <body>                          <body>
63    
64                          <p>If you run <c>emerge sun-jdk-1.3.1</c> or <c>emerge                          <p>Hvis du kører <c>emerge sun-jdk-1.3.1</c> eller <c>emerge
65                          ibm-jdk-1.3.1</c>, you will be notified that you are required                          ibm-jdk-1.3.1</c>, bliver du underrettet om at
66                          to download the actual tarballs yourself. This has to do with license                          du selv skal downloade de aktuelle
67                          restrictions for the Sun JDK/JRE (online click-wrap license) and                          tarballs. Dette er pga. restriktioner for Sun
68                          registration issues with the IBM JDK/JRE.                          JDK/JRE (online klik-indpaknings licens) og
69                            registrerings problemer med IBM JDK/JRE.
70                          </p>                          </p>
71    
72                          <note>There is also a sun-jdk-1.4.0, but not all packages                          <note>Der er også en sun-jdk-1.4.0, men ikke
73                          work nicely with Java 1.4, so you're on your own if you use the 1.4.0                          alle pakker virker lige fint med Java 1.4, så
74                            du hænger selv på den hvis du bruger 1.4.0
75                          JDK.                          JDK.
76                          </note>                          </note>
77    
78                          <p>You should download the indicated file(s) into                          <p>Du bør downloade de(n) indikerede fil(er) til
79                          <path>/usr/portage/distfiles</path>. Once that is done, you can rerun                          <path>/usr/portage/distfiles</path>. Når det
80                          the emerge command, then the JDK/JRE will be installed properly into                          først er gjort kan du køre emerge kommandoen
81                          <path>/opt</path>.                          igen, derefter bliver JDK/JRE installeret
82                            korrekt i <path>/opt</path>.
83                          </p>                          </p>
84                                                    
85                          </body>                          </body>
# Line 75  Line 87 
87          </chapter>          </chapter>
88    
89          <chapter>          <chapter>
90                  <title>Configuring your JDK/JRE</title>                  <title>Konfiguration af din JDK/JRE</title>
91                                    
92                  <section>                  <section>
93                          <title>Overview</title>                          <title>Overblik</title>
94                                                    
95                          <body>                          <body>
96                                                    
97                          <p>Gentoo has the ability to have multiple JDKs and JREs installed                          <p>
98                          without them conflicting.                          Gentoo har evnen til at have adskillige JDK'er
99                            og JRE'er installeret samtidig uden at få
100                            konflikter pga. dette.
101                          </p>                          </p>
102    
103                          <p>Using the <c>java-config</c> tool, you can set the system-wide                          <p>Ved at bruge <c>java-config</c> værktøjet
104                          default if you have root access. Users can also use <c>java-config</c>                          kan du sætte en stadard der gælder for hele
105                          to set up their own personal default, that is different from the                          systemet hvis du har root adgang. Brugere kan
106                          system-wide default.                          også bruge <c>java-config</c> til at sætte
107                            deres personlige standard der er forskellig
108                            fra den standard der er sat på systemet.
109                          </p>                          </p>
110                                                    
111                          </body>                          </body>
112                  </section>                  </section>
113    
114                  <section>                  <section>
115                          <title>Setting a default JDK/JRE</title>                          <title>At sætte en standard JDK/JRE</title>
116                          <body>                          <body>
117    
118                          <p>Running the command <c>java-config --list-available-vms</c> will                          <p>At køre kommandoen <c>java-config
119                          give you a list of all availble JREs and JDKs on your system, thus:</p>                          --list-available-vms</c> vil give dig en liste
120                            over alle de JRE og JDK der er på systemet,
121                            således::</p>
122                                                    
123                          <pre caption = "Listing available VMs">                          <pre caption = "At liste de tilgængelige VMs">
124  [%1 ~] java-config --list-available-vms  [%1 ~] java-config --list-available-vms
125  [blackdown-jdk-1.3.1] Blackdown JDK 1.3.1 (/etc/env.d/java/20blackdown-jdk-1.3.1)  [blackdown-jdk-1.3.1] Blackdown JDK 1.3.1 (/etc/env.d/java/20blackdown-jdk-1.3.1)
126  [blackdown-jre-1.3.1] Blackdown JRE 1.3.1 (/etc/env.d/java/20blackdown-jre-1.3.1)  [blackdown-jre-1.3.1] Blackdown JRE 1.3.1 (/etc/env.d/java/20blackdown-jre-1.3.1)
# Line 112  Line 130 
130  [sun-jdk-1.4.0] Sun JDK 1.4.0 (/etc/env.d/java/20sun-jdk-1.4.0)  [sun-jdk-1.4.0] Sun JDK 1.4.0 (/etc/env.d/java/20sun-jdk-1.4.0)
131                          </pre>                          </pre>
132                                                    
133                          <p>The name in the brackets <path>"[]"</path> is the handle or ID for                          <p>Navnet i de firkantede paranteser <path>"[]"</path>
134                          that particular VM. You use pass that ID to <c>java-config                          er ID'et for den pågældende VM. Du sender
135                          --set-system-vm</c>, thus:                          dette ID til <c>java-config
136                            --set-system-vm</c>, således:
137                          </p>                          </p>
138    
139                          <pre caption = "Setting the System VM">                          <pre caption = "At sætte en global VM">
140  [#1 ~] java-config --set-system-vm=ibm-jdk-1.3.1  [#1 ~] java-config --set-system-vm=ibm-jdk-1.3.1
141  Now using IBM JDK 1.3.1 (/etc/env.d/java/20ibm-jdk-1.3.1)  Now using IBM JDK 1.3.1 (/etc/env.d/java/20ibm-jdk-1.3.1)
142                          </pre>                          </pre>
143    
144                          <note>You will have to be root to run --set-system-vm                          <note>Du bliver nødt til at være root for at køre --set-system-vm
145                          </note>                          </note>
146    
147                          <p>Once you have issued <c>java-config --set-system-vm</c> with a                          <p>Når du først har kørt <c>java-config
148                          particular VM ID, you will need to regenerate your /etc/profile.env,                          --set-system-vm</c> med et bestemt ID for en
149                          thus:                          VM, bliver du nødt til at regenerere din /etc/profile.env,
150                            således:
151                          </p>                          </p>
152                                                    
153                          <pre caption = "Regenerating /etc/profile.env" >                          <pre caption = "At regenerere /etc/profile.env" >
154  [#1 ~] env-update  [#1 ~] env-update
155                          </pre>                          </pre>
156    
157                          <p>After this, you will either want to relogin, or resource                          <p>Efter dette bliver du nødt til at logge ind
158                          <path>/etc/profile</path> into your environment.                          igen eller bruge ressourcen
159                            <path>/etc/profile</path> til dit environment.
160                          </p>                          </p>
161    
162                          <p>As a regular user, you can use <c>java-config --set-user-vm</c>,                          <p>Som almindelig bruger kan du køre <c>java-config --set-user-vm</c>,
163                          which will create <path>$HOME/.gentoo/java-env</path> with all                          hvilket vil lave
164                          required env vars. You would normally source this from your shell's                          <path>$HOME/.gentoo/java-env</path> med alle
165                          startup script (<path>$HOME/.zshenv</path> in my case).</p>                          krævede environment variable. Du ville normalt
166                            hente dette fra din shell's opstarts script
167                            (<path>$HOME/.zshenv</path> i mit tilfælde).</p>
168                                                    
169                          </body>                          </body>
170                  </section>                  </section>
171    
172                  <section>                  <section>
173                          <title>Setting a default CLASSPATH</title>                          <title>At sætte en standard CLASSPATH</title>
174                          <body>                          <body>
175    
176                          <p><c>java-config</c> can also be used to set a system-wide default                          <p><c>java-config</c> kan også bruges til at
177                          CLASSPATH, and of course a user-specific default CLASSPATH.                          sætte en global standard for hele systemets
178                            CLASSPATH, og selvfølgelig også en
179                            bruger-specifik standards CLASSPATH.
180                          </p>                          </p>
181    
182                          <p>First you want to list available java libraries that might be                          <p>Du ønsker først at liste alle de
183                          interesting to put in your CLASSPATH, thus:                          tilgængelige java biblioteker der måske er
184                            interessante at putte i din CLASSPATH, således:
185                          </p>                          </p>
186                                                    
187                          <pre caption = "Listing classes">                          <pre caption = "At liste klasser">
188  [%1 ~] java-config --list-available-packages  [%1 ~] java-config --list-available-packages
189  [ant] No description (/usr/share/ant/classpath.env)  [ant] No description (/usr/share/ant/classpath.env)
190  [java-gnome] No description (/usr/share/java-gnome/classpath.env)  [java-gnome] No description (/usr/share/java-gnome/classpath.env)
# Line 166  Now using IBM JDK 1.3.1 (/etc/env.d/java Line 192  Now using IBM JDK 1.3.1 (/etc/env.d/java
192  [log4j] "" (/usr/share/log4j/package.env)  [log4j] "" (/usr/share/log4j/package.env)
193                          </pre>                          </pre>
194    
195                          <note>None of these packages have a proper description. That is                          <note>Nogle af disse pakker har en rigtig
196                          something that will be implemented in the not-so-distant                          beskrivelse. Dette er noget der bliver
197                          future.                          implementeret i en fremtid der ikke ligger så
198                            langt væk.
199                          </note>                          </note>
200    
201                          <p>Again, the name in brackets <path>"[]"</path> are the IDs that you                          <p>Igen, navnet i de firkantede paranteser
202                          have to pass to <c>java-config --set-system-classpath</c>, thus:                          <path>"[]"</path> er de ID'er som du sender
203                            til  <c>java-config --set-system-classpath</c>, således:
204                          </p>                          </p>
205    
206                          <pre caption = "Setting classpaths">                          <pre caption = "At sætte classpaths">
207  java-config --set-system-classpath=log4j,java-gtk,java-gnome  java-config --set-system-classpath=log4j,java-gtk,java-gnome
208                          </pre>                          </pre>
209                                                    
210                          <note>The current directory (.) will not be part of the system classpath,                          <note>Det nuværende bibliotek (.) vil ikke
211                          as that should be added in root's login profile.                          være en del af systemets classpath, da dette
212                            bør være tilføjet i root's login profil.
213                          </note>                          </note>
214    
215                          <p>Again, you will want to run <c>env-update</c> to update your                          <p>Du vil igen ønske at køre <c>env-update</c>
216                          system's environment, and you might also want to relogin or resource                          for at opdatere dit systems environment og du
217                          the <path>/etc/profile</path>.                          vil måske også ønske at logge ind igen eller
218                            bruge <path>/etc/profile</path>.
219                          </p>                          </p>
220                                                    
221                          <p>For users, <c>java-config --set-user-classpath</c> will create                          <p>For brugere vil <c>java-config --set-user-classpath</c> lave
222                          <path>$HOME/.gentoo/java-env-classpath</path>, which is automatically                          <path>$HOME/.gentoo/java-env-classpath</path>,
223                          included by <path>$HOME/.gentoo/java-env</path>.                          som automatisk bliver inkluderet af <path>$HOME/.gentoo/java-env</path>.
224                          </p>                          </p>
225                                                    
226                          </body>                          </body>
# Line 198  java-config --set-system-classpath=log4j Line 228  java-config --set-system-classpath=log4j
228          </chapter>          </chapter>
229    
230          <chapter>          <chapter>
231                  <title>Additional resources</title>                  <title>Yderligere ressourcer</title>
232                  <section>                  <section>
233                          <title>Off-line resources</title>                          <title>Off-line ressourcer</title>
234                                                    
235                          <body>                          <body>
236    
237                          <ul>                          <ul>
238                                  <li>java-config man page</li>                                  <li>java-config man siden</li>
239                                  <li><c>java-config --help</c></li>                                  <li><c>java-config --help</c></li>
240                                  <li>The <path>/usr/bin/java-config</path> script itself</li>                                  <li><path>/usr/bin/java-config</path>
241                                    scriptet selv</li>
242                          </ul>                          </ul>
243                                                    
244                          </body>                          </body>
245                  </section>                  </section>
246    
247                  <section>                  <section>
248                          <title>Online resources</title>                          <title>Online ressourcer</title>
249    
250                          <body>                          <body>
251    
252                          <ul>                          <ul>
253                          <li>The <uri link="http://news.gmane.org/gmane.linux.gentoo.devel">                          <li><uri link="http://news.gmane.org/gmane.linux.gentoo.devel">
254                                  gentoo-dev </uri>,                                  gentoo-dev </uri>,
255                                  <uri link="http://news.gmane.org/gmane.linux.gentoo.user"> gentoo-user                                  <uri link="http://news.gmane.org/gmane.linux.gentoo.user"> gentoo-user
256                                  </uri> mailing list archives</li>                                  </uri> mailingliste arkiverne</li>
257                          <li>#gentoo on irc.openprojects.net</li>                          <li>#gentoo på irc.openprojects.net</li>
258                          </ul>                          </ul>
259                                                    
260                          </body>                          </body>

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26