Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13411 > unrolled thread
| Started by | TK <tokauf@googlemail.com> |
|---|---|
| First post | 2012-04-05 04:43 -0700 |
| Last post | 2012-04-05 19:43 -0700 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.java.programmer
java runtime TK <tokauf@googlemail.com> - 2012-04-05 04:43 -0700
Re: java runtime Steven Simpson <ss@domain.invalid> - 2012-04-05 14:07 +0100
Re: java runtime Volker Mueller <vm.arag@flinux.de> - 2012-04-05 17:13 +0200
Re: java runtime Roedy Green <see_website@mindprod.com.invalid> - 2012-04-05 17:57 -0700
Re: java runtime Roedy Green <see_website@mindprod.com.invalid> - 2012-04-05 19:43 -0700
| From | TK <tokauf@googlemail.com> |
|---|---|
| Date | 2012-04-05 04:43 -0700 |
| Subject | java runtime |
| Message-ID | <d69b7455-2056-4cde-977f-556a45e53c92@f37g2000yqc.googlegroups.com> |
Hallo Zusammen, Hab unter UBuntu openjdj1.7 und 1.6 installiert. Wenn ich ein Programm starte dann läuft es immer mit 1.6 (auf der Konsole). ES soll aber mit 1.7 laufen. Wie mache ich das? o-o Thomas
[toc] | [next] | [standalone]
| From | Steven Simpson <ss@domain.invalid> |
|---|---|
| Date | 2012-04-05 14:07 +0100 |
| Message-ID | <u1i059-sss.ln1@s.simpson148.btinternet.com> |
| In reply to | #13411 |
On 05/04/12 12:43, TK wrote: > Hab unter UBuntu openjdj1.7 und 1.6 installiert. Wenn ich ein Programm > starte dann läuft es immer mit 1.6 (auf der Konsole). ES soll aber > mit 1.7 laufen. Wie mache ich das? Google translation: > 'm On Ubuntu openjdj1.7 and 1.6 installed. If I have a program > then start it always runs at 1.6 (on the console). However, it should > run with 1.7. How do I do that? I've had the same problem - javac is bound to 1.7, while java is bound to 1.6. I tried removing the 1.6 packages, but 1.7 depends on them, and that got me into a terrible mess. IIRC, this worked for me: sudo update-alternatives --config java ...and then choosing the 1.7 version. I found I had to do this for all the commands in java-7-openjdk-*/bin that are symlinks: * java * keytool * orbd * pack200 * policytool * rmid * rmiregistry * servertool * tnameserv * unpack200 Hmm, can't seem to find a javaws for 1.7. -- ss at comp dot lancs dot ac dot uk
[toc] | [prev] | [next] | [standalone]
| From | Volker Mueller <vm.arag@flinux.de> |
|---|---|
| Date | 2012-04-05 17:13 +0200 |
| Message-ID | <jlkob3$c78$1@bridge.flinux.in-berlin.de> |
| In reply to | #13411 |
Am 05.04.2012 13:43, schrieb TK: > Hab unter UBuntu openjdj1.7 und 1.6 installiert. Wenn ich ein Programm > starte dann läuft es immer mit 1.6 (auf der Konsole). ES soll aber > mit 1.7 laufen. Wie mache ich das? Setze im Environment des Programmes, das mit dem JDK laufen soll die Variable JAVA_HOME auf den Pfad zum jdk (vmtl. /usr/lib/jdk/jdk-1.7 oder ähnlich - was "aktiv" ist erfährst Du mittels "which java" - die andere jvm liegt meist "daneben".). you@yourhost> export JAVA_HOME=/Pfad/zu/Deinem/JDK you@yourhost> ./yourProgram oder "flüchtig" nur für den Programmaufruf you@yourhost> JAVA_HOME=/Pfad/zu/Deinem/JDK ./yourProgram BTW: Group language seems to be english - you'd better change to that ... Bye, Volker
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-04-05 17:57 -0700 |
| Message-ID | <0eesn7d05sb59iicp09bh12jjdnpi5fugs@4ax.com> |
| In reply to | #13411 |
On Thu, 5 Apr 2012 04:43:21 -0700 (PDT), TK <tokauf@googlemail.com> wrote, quoted or indirectly quoted someone who said : >Hallo Zusammen, > >Hab unter UBuntu openjdj1.7 und 1.6 installiert. Wenn ich ein Programm >starte dann l=E4uft es immer mit 1.6 (auf der Konsole). ES soll aber >mit 1.7 laufen. Wie mache ich das? translation: Hi I'm everyone, I'm using Ubuntu openjdj1.7 with JDK 1.6 installed. When I start a program with l = E4uft ??? it always uses Java 1.6 (on the console). However, it should run with 1.7. How can I do that? see http://mindprod.com/jgloss/javaexe.html#MULITIPLES -- Roedy Green Canadian Mind Products http://mindprod.com When you were a child, if you did your own experiment to see if it was better to put to cocoa into your cup first or the hot milk first, then you likely have the programmer gene..
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-04-05 19:43 -0700 |
| Message-ID | <k2msn7hfttjv00c68oikk2m0fmm21ks8u0@4ax.com> |
| In reply to | #13430 |
On Thu, 05 Apr 2012 17:57:58 -0700, Roedy Green <see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted someone who said : >translation: > >Hi I'm everyone, I meant Hi everyone. -- Roedy Green Canadian Mind Products http://mindprod.com When you were a child, if you did your own experiment to see if it was better to put to cocoa into your cup first or the hot milk first, then you likely have the programmer gene..
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web