Skip to content

Can't use kaitai-struct-runtime on JDK 8: NoSuchMethodError #34

Closed
@archiecobbs

Description

@archiecobbs

Can't run kaitai on JDK 8 or you get this exception:

Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
	at io.kaitai.struct.ByteBufferKaitaiStream.seek(ByteBufferKaitaiStream.java:153)
	at com.example.MicrosoftCfb.dir(MicrosoftCfb.java:413)
	at com.example.MicrosoftCfb.print(MicrosoftCfb.java:434)
	at com.example.MicrosoftCfb.main(MicrosoftCfb.java:430)

Please build with --release 8 to avoid this problem.

The problem is described in more detail here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions