Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #13414

Re: java runtime

From Steven Simpson <ss@domain.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: java runtime
Date 2012-04-05 14:07 +0100
Organization Aioe.org NNTP Server
Message-ID <u1i059-sss.ln1@s.simpson148.btinternet.com> (permalink)
References <d69b7455-2056-4cde-977f-556a45e53c92@f37g2000yqc.googlegroups.com>

Show all headers | View raw


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

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web