Discussions
Categories
- 197K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.8K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 556 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.4K SQL Developer
- 296.3K Development
- 17 Developer Projects
- 139 Programming Languages
- 293K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 158 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 468 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
com.sun.media.sound in Java 9

Can anyone advise if it is possible to use com.sun.media.sound in Java 9 and, if so, how to set it up.
I got the following error mesage when I tried to run my program in Java 9.
cannot access class com.sun.media.sound.AudioSynthesizer (in module java.desktop) because module java.desktop does not export com.sun.media.sound to unnamed module @0x2b0f373b
Any help would be appreciated.
Answers
-
Hi,
most of the internal APIs in JDK 9 are inaccessible to code outside the JDK. Please seeJEP 260: Encapsulate Most Internal APIs for details and potential workarounds.
Dalibor Topic
Principal Product Manager
Java Platform Group @ Oracle
-
Hi,
But it seems ([Audio-engine-dev] Gervill 0.2 - Grokbase ) like it was actually planned to place the AudioSynthesizer in public (i.e. javax.sound.midi) package. Can you elaborate on it? Is there any reasony why Audio- or SoftSynthesizer shall NOT be available publicly?
-
It didn't get done in time for JDK 9. Please see thread at fohttp://openjdk.markmail.org/thread/ahqxmcxrjzpv7occ for details.
Dalibor Topic
Principal Product Manager
Java Platform Group @ Oracle