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 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: References: 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: Cancel-Lock: sha1:edwAZx39hhZSy2qECjN6xOsiExk= Xref: csiph.com comp.lang.java.programmer:28774 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