IllegalAccessError

Started by angry programming nerd, August 04, 2023, 09:41:34

Previous topic - Next topic

angry programming nerd

Hello. im using legacy LWJGL and i attempted to use wavedata.create(string) method But. it gived me worst error
heres a code.
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?