FileChannel incompatibility introduced between 6 and 7 (and possible compiler bug)
Alan Bateman
Alan.Bateman at oracle.com
Thu Jul 26 13:57:10 PDT 2012
On 26/07/2012 19:44, David M. Lloyd wrote:
> Ran into a pretty ugly little issue just now. My NIO framework has a
> FileChannel subclass that it uses for certain tasks. This works fine
> on 7, but on 6 I get errors like this:
>
> java.lang.NoClassDefFoundError: java/nio/channels/SeekableByteChannel
>
It sounds like you are compiling with 7 and running with 6, in which
case you need to make sure to specify - bootclasspath when specifying
-source and -target.
-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20120726/e78574ff/attachment.html
More information about the nio-dev
mailing list