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


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

Re: Java 8 and Windows XP?

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Java 8 and Windows XP?
Date 2014-06-18 13:34 -0400
Organization A noiseless patient Spider
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>

Show all headers | 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