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


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

Re: Java 8 and Windows XP?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Java 8 and Windows XP?
Date Wed, 18 Jun 2014 13:34:03 -0400
Organization A noiseless patient Spider
Lines 27
Message-ID <lnsiie$7rt$1@dont-email.me> (permalink)
References <lns8cp$itl$1@dont-email.me> <lnsc30$j0d$1@dont-email.me> <lnsedc$5dn$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Wed, 18 Jun 2014 17:34:06 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="bd4e1cba8d8592bec5d5ed9e4537fbfd"; logging-data="8061"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+IFsI8KWAtnnlJtYZ2G9U7"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <lnsedc$5dn$1@dont-email.me>
Cancel-Lock sha1:edwAZx39hhZSy2qECjN6xOsiExk=
Xref csiph.com comp.lang.java.programmer:28774

Show key headers only | View raw


On 6/18/2014 12:23 PM, Knute Johnson wrote:
> On 6/18/2014 08:43, Eric Sosman wrote:
>> On 6/18/2014 10:40 AM, Knute Johnson wrote:
>>> [...]
>>> 7 installs fine but I was hoping to get everybody up to 8.  The code
>>> doesn't use any features of 8 so I just compiled with 8 and used target
>>> and source 7.  That should work shouldn't it?
>>
>>      If you're compiling against 7's rt.jar and stuff, I think it
>> should work.  But if you're using 8's class libraries (even if you
>> don't make explicit use of their new features) you may be out of
>> luck trying to use the compiled .class files with 7.
>
> Seems to run on the client's computer fine but I'm going to have to
> install the Java 7 JDK again so I can get at that rt.jar.

     I'd half-expect that a JDK8-compiled class file might contain
references to interfaces and so on that didn't exist in 7.  But
perhaps (1) you're lucky, or (2) Oracle used more care than I'd
given them credit for.

     Safest course: If you're going to execute with Java N, compile
with JDK <=N.

-- 
Eric Sosman
esosman@comcast-dot-net.invalid

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


Thread

Java 8 and Windows XP? Knute Johnson <eternal@knutejohnson.com> - 2014-06-18 07:40 -0700
  Re: Java 8 and Windows XP? Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-06-18 11:43 -0400
    Re: Java 8 and Windows XP? Knute Johnson <eternal@knutejohnson.com> - 2014-06-18 09:23 -0700
      Re: Java 8 and Windows XP? Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-06-18 13:34 -0400
  Re: Java 8 and Windows XP? "Qu0ll" <Qu0llSixFour@gmail.com> - 2014-06-19 08:31 +1000
    Re: Java 8 and Windows XP? Knute Johnson <eternal@knutejohnson.com> - 2014-06-18 16:02 -0700
      Re: Java 8 and Windows XP? Arne Vajhøj <arne@vajhoej.dk> - 2014-06-21 23:16 -0400
  Re: Java 8 and Windows XP? Roedy Green <see_website@mindprod.com.invalid> - 2014-06-22 04:04 -0700

csiph-web