Thank you very much. I have Java installed on my PC and I added the directory holding jvm.dll to %PATH%
as was advised in the first try.
Then I tried your demo code fragment for Java again, but I get:
?- jpl_midi_demo.
ERROR: c:/program files/swipl/library/jpl.pl:5429:
ERROR: open_shared_object/3: The specified module could not be found.
ERROR: c:/program files/swipl/library/jpl.pl:5429:
ERROR: c:/program files/swipl/library/jpl.pl:5429: Initialization goal raised exception:
ERROR: jpl:extend_java_library_path/1: Unknown procedure: jpl:jni_get_default_jvm_opts/1
ERROR: Exported procedure jpl:jpl_c_lib_version/1 is not defined
ERROR: Unknown procedure: jpl:jni_func/3
ERROR: In:
ERROR: [15] jpl:jni_func(6,'javax/sound/midi/MidiSystem',_43364)
ERROR: [14] jpl:jFindClass('javax/sound/midi/MidiSystem',_43396) at c:/program files/swipl/library/jpl.pl:1512
ERROR: [13] jpl:jpl_type_to_class(class([javax|...],['MidiSystem']),_43428) at c:/program files/swipl/library/jpl.pl:2979
ERROR: [12] jpl:jpl_call('javax.sound.midi.MidiSystem',getSynthesizer,[],_43482) at c:/program files/swipl/library/jpl.pl:314
ERROR: [11] jpl_midi_demo(20) at c:/docs/jpl_midi_demo.pl:7
ERROR: [9] toplevel_call('<garbage_collected>') at c:/program files/swipl/boot/toplevel.pl:1173
ERROR:
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.
Exception: (15) jpl:jni_func(6, 'javax/sound/midi/MidiSystem', _32922) ?
I’m running SWI-Prolog (threaded, 64 bits, version 9.1.14-41-g41ac4a569).