Importing javax libraries

edited October 2017 in Python Mode

Hi! i'm trying to use some java libraries in python mode, javax.sound.midi.MidiMessage and javax.sound.midi.ShortMessage. i've tried importing the libraries using


but the sketch compiling fails because it cannot find those libraries. the error is:

"Exception: This sketch requires the "javax.sound.midi.MidiMessage" library"

if i try importing the libraries from a Java sketch everything works fine.

do you know what i'm doing wrong? or do you know how i can "install" those libraries for the python interpreter?



  • edited November 2015 Answer ✓

    add_library is for Processing libraries.

    Try from javax.sound.midi import MidiMessage.

Sign In or Register to comment.