Thanks, Dalibor.

Cheers,
-Rick

On 2/1/16 2:05 PM, dalibor topic wrote:
Hi Rick,

when cross-compiling for an earlier release you must use the corresponding class library for that earlier release or use the new platform flag in JDK 9.

Please see https://blogs.oracle.com/darcy/entry/how_to_cross_compile_for and http://openjdk.java.net/jeps/247 for more information.

cheers,
dalibor topic

On 30.01.2016 22:33, Rick Hillegas wrote:
Hi Rory, Dalibor, Balchandra, and Muneer,

I have gotten the Derby build to work using the javac supplied by b100
of java 9 (referenced below). I have tripped across the following problem:

If I use the java 9 javac to compile the attached program down to java 8
byte code thusly...

     javac -source 1.8 -target 1.8 ByteBufferTest.java

...then the result runs fine under java 9 but fails under java 8 with
the following error message:

Exception in thread "main" java.lang.NoSuchMethodError:
java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
     at ByteBufferTest.main(ByteBufferTest.java:9)

Is there something special which I need to do in order to use the java 9
javac to compile programs which will run under java 8?

Thanks,
-Rick

On 1/15/16 3:02 AM, Rory O'Donnell wrote:

Hi Rick,

Early Access b02 <https://jdk8.java.net/download.html> for JDK 8u76 is
available on java.net, summary of  changes are listed here
<http://download.java.net/jdk8u76/changes/jdk8u76-b02.html>.

Early Access b100 <https://jdk9.java.net/download/> for JDK 9 is
available on java.net, summary of  changes are listed here
<http://download.java.net/jdk9/changes/jdk-9+100.html>.

Early Access b99 <https://jdk9.java.net/jigsaw/> for JDK 9 with
Project Jigsaw is available on java.net, summary of changes are listed
here <http://download.java.net/jigsaw/archive/99/binaries/jdk-9+99.html> .

Dalibor and I will be at FOSDEM '16, Brussels 30 & 31 January, link to
our presentation here.
<https://fosdem.org/2016/schedule/event/preparing_for_jdk_nine/>
Let us know if you will be there, hopefully we can meet up !

Rgds,Rory

--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland



Reply via email to