Hello Guest

IllegalAccessError

  • 0 Replies
  • 292 Views
IllegalAccessError
« on: August 04, 2023, 09:41:34 »
Hello. im using legacy LWJGL and i attempted to use wavedata.create(string) method But. it gived me worst error
heres a code.
Code: [Select]
public AudioBuffer(String file) {
        this.bufferId = alGenBuffers();
        WaveData wave = WaveData.create(file);
        alBufferData(bufferId, wave.format, wave.data, wave.samplerate);
        wave.dispose();
    }
heres a err.
java.lang.IllegalAccessError: class org.lwjgl.util.WaveData (in unnamed module @0xc8e4bb0) cannot access class com.sun.media.sound.WaveFileReader (in module java.desktop) because module java.desktop does not export com.sun.media.sound to unnamed module @0xc8e4bb0
how can i fix it?