NoSuchMethodError on Java 10

Create issue
Issue #269 resolved
Former user created an issue

Hello, When I try to run JAudioTagger in Java 10 and when I try to call MP3File constructor, it gives me NoSuchMethodError.

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: sun.nio.ch.DirectBuffer.cleaner()Lsun/misc/Cleaner;

Please let me know about the following issue which I'm facing in Java 10.

Also let me tell you that I had no problems using this in previous versions of Java

Comments (4)

  1. IJabz repo owner

    Ah okay, looks like we will have to remove this sun class then, thankyou for reporting this issue

  2. IJabz repo owner

    I can only see reference to this in DirectByteBufferUtils and this is only used by FlacTagWriter !

  3. IJabz repo owner

    So we dont actually use this class anymore but removed from code. If you are seeing error with Mp3s i suggest must be using an old version of jaudiotagger.

  4. Log in to comment