## Uses of Class
javax.sound.midi.MidiUnavailableException

- Packages that use MidiUnavailableException
  Package | Description
  --- | ---
  javax.sound.midi | Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data.

- - ### Uses of MidiUnavailableException in javax.sound.midi

    Methods in javax.sound.midi that throw MidiUnavailableException
    Modifier and Type | Method | Description
    --- | --- | ---
    `static MidiDevice` | MidiSystem.`getMidiDevice(MidiDevice.Info info)` Obtains the requested MIDI device.
    `static Receiver` | MidiSystem.`getReceiver()` Obtains a MIDI receiver from an external MIDI port or other default device.
    `Receiver` | MidiDevice.`getReceiver()` Obtains a MIDI IN receiver through which the MIDI device may receive MIDI data.
    `static Sequencer` | MidiSystem.`getSequencer()` Obtains the default `Sequencer`, connected to a default device.
    `static Sequencer` | MidiSystem.`getSequencer(boolean connected)` Obtains the default `Sequencer`, optionally connected to a default device.
    `static Synthesizer` | MidiSystem.`getSynthesizer()` Obtains the default synthesizer.
    `static Transmitter` | MidiSystem.`getTransmitter()` Obtains a MIDI transmitter from an external MIDI port or other default source.
    `Transmitter` | MidiDevice.`getTransmitter()` Obtains a MIDI OUT connection from which the MIDI device will transmit MIDI data The returned transmitter must be closed when the application has finished using it.
    `void` | MidiDevice.`open()` Opens the device, indicating that it should now acquire any system resources it requires and become operational.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.