Hi,
Eclipse schmeisst mir folgende Exception:
java.nio.channels.NonWritableChannelException
at gnu.java.nio.channels.FileChannelImpl.map(libgcj.so.7rh)
SuFu liefert leider nix zur NonWritableChannelException, googlen hats auch nicht gebracht... Wer kann helfen?
Eclipse schmeisst mir folgende Exception:
java.nio.channels.NonWritableChannelException
at gnu.java.nio.channels.FileChannelImpl.map(libgcj.so.7rh)
Code:
FileOutputStream fout = new FileOutputStream(file);
FileChannel fc = fout.getChannel();
MappedByteBuffer buf = fc.map(FileChannel.MapMode.READ_WRITE, 0, regfile.getFileHeader().getHeader_length()); // <- Problem ist in dieser Zeile
SuFu liefert leider nix zur NonWritableChannelException, googlen hats auch nicht gebracht... Wer kann helfen?