FileChannel incompatibility introduced between 6 and 7 (and possible compiler bug) (original) (raw)
David M. Lloyd david.lloyd at redhat.com
Thu Jul 26 14:35:09 PDT 2012
- Previous message: FileChannel incompatibility introduced between 6 and 7 (and possible compiler bug)
- Next message: trz update - nio.2 MacFileSystemProvider added kqueue WatchService
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 07/26/2012 03:57 PM, Alan Bateman wrote:
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.
May not be an option for me, as I need to compile against certain classes only present in 7. I'll probably have to stub them to make it work. We shall see how it goes.
- DML
- Previous message: FileChannel incompatibility introduced between 6 and 7 (and possible compiler bug)
- Next message: trz update - nio.2 MacFileSystemProvider added kqueue WatchService
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]