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


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

Re: install multiple Java versions

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!news.mb-net.net!open-news-network.org!.POSTED!not-for-mail
From Marcel Mueller <news.5.maazl@spamgourmet.org>
Newsgroups comp.lang.java.programmer
Subject Re: install multiple Java versions
Date Mon, 08 Sep 2014 20:08:14 +0200
Organization MB-NET.NET for Open-News-Network e.V.
Lines 24
Message-ID <lukraf$84i$1@gwaiyur.mb-net.net> (permalink)
References <efb21ee7-215a-4ded-94b0-4f6de34092cb@googlegroups.com>
NNTP-Posting-Host aftr-37-24-147-188.unity-media.net
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace gwaiyur.mb-net.net 1410199695 8338 37.24.147.188 (8 Sep 2014 18:08:15 GMT)
X-Complaints-To abuse@open-news-network.org
NNTP-Posting-Date Mon, 8 Sep 2014 18:08:15 +0000 (UTC)
User-Agent Mozilla/5.0 (OS/2; Warp 4.5; rv:10.0.5) Gecko/20120625 Thunderbird/10.0.5
In-Reply-To <efb21ee7-215a-4ded-94b0-4f6de34092cb@googlegroups.com>
Xref csiph.com comp.lang.java.programmer:29938

Show key headers only | View raw


On 08.09.14 11.31, marc.at.compass@gmail.com wrote:
> I know how to install multiple Java versions in Windows. How does this work in Linux?

Java needs not to be installed by some setup program. Just copy the 
files and you are fine. This applies to Linux and Windows as well.

Only a recent Java should be installed ordinarily, to protect 
applications that use the default Java from security issues.

To switch between the versions it is usually sufficient to invoke the 
Java executable with a full qualified path. Sometimes it may be required 
to set the JAVA_HOME environment variable to the folder where your 
specific version is located. E.g.

SET JAVA_HOME=C:\Java\jre1.4.2
%JAVA_HOME%\bin\java ...

export JAVA_HOME=/opt/java/jre1.4.2
/opt/java/jre1.4.2/bin/java ...

BTDTMT.


Marcel

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


Thread

install multiple Java versions marc.at.compass@gmail.com - 2014-09-08 02:31 -0700
  Re: install multiple Java versions lipska the kat <lipskathekat@example.com> - 2014-09-08 11:25 +0100
  Re: install multiple Java versions marc.at.compass@gmail.com - 2014-09-08 04:02 -0700
  Re: install multiple Java versions Marcel Mueller <news.5.maazl@spamgourmet.org> - 2014-09-08 20:08 +0200

csiph-web