Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Steven Simpson Newsgroups: comp.lang.java.programmer Subject: Re: java runtime Date: Thu, 05 Apr 2012 14:07:42 +0100 Organization: Aioe.org NNTP Server Lines: 37 Message-ID: References: NNTP-Posting-Host: Ha4tFBGJ050IW4mo4A//kQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120310 Thunderbird/11.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:13414 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