i am working on adapting my desktop app to run with jre9 i get
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: sun/audio/AudioStream
i had some other problems with sun API that i resolved by adding the jvm args
--add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.desktop/sun.swing=ALL-UNNAMED
but in those cases the error was of type java.lang.IllegalAccessError
so exporting the model solved the problem.
any idea how can keep using the sun.audio
? of course i can try to switch to a different library like javax.sound
but i have some legacy code that i rather not touch.
i tried some options like --add-open
and --illegal-access
but assuming the sun.audio
api was removed form the sdk those options won't make any difference