Working example of Pulse with Java

Hi there,
Could anybody point me where to find a working Java example of Pulse? I’ve tried with the example present in the documentation, but it is not working. My guess is that the example is a little bit behind the current code in master.

Regards,

Hi Esteban,

I use eclipe as my Java editor, and have eclipse projects as part of the repository.
I also have an IntelliJ project, but that may be out of date…

I did find/fix an issue just now in the 2.x branch.
Can you pull that and try running the Java How2
https://gitlab.kitware.com/physiology/engine/blob/master/sdk/howto/java/com/kitware/physiology/pulse/engine/HowTo_EngineUse.java

Hi,

Sorry for the late reply. I got sidetracked to other projects but now I’m back to Pulse.
I’ve tried with the latest code in master, but I’m still getting the same error:

INFO  FileUtils::57::Loading native library : /home/esteban/dev/cognitive/Pulse/builds/install/bin/PulseJNI
INFO  FileUtils::57::Loading native library : /home/esteban/dev/cognitive/Pulse/builds/install/bin/PulseJNI
[ERROR] : [0(s)] Oxygen Definition not found
[ERROR] : [0(s)] CarbonMonoxide Definition not found
[ERROR] : [0(s)] CarbonDioxide Definition not found
[ERROR] : [0(s)] Nitrogen Definition not found
[ERROR] : [0(s)] Hemoglobin Definition not found
[ERROR] : [0(s)] Oxyhemoglobin Definition not found
[ERROR] : [0(s)] Carbaminohemoglobin Definition not found
[ERROR] : [0(s)] Carboxyhemoglobin Definition not found
[ERROR] : [0(s)] OxyCarbaminohemoglobin Definition not found
[ERROR] : [0(s)] Bicarbonate Definition not found
[ERROR] : [0(s)] Epinephrine Definition not found
FATAL:Oxygen Definition not found : 
[FATAL] : [0(s)] Oxygen Definition not found
terminate called after throwing an instance of 'PhysiologyEngineException'
  what():  [0(s)] Oxygen Definition not found

I’m pretty sure I’m missing some basic configuration, but I can’t find what it is.

Regards,

Never mind, I was not running the example from the /bin directory and all the configurations were missing.

Regards,