# Working example of Pulse with Java

**URL:** https://discourse.kitware.com/t/working-example-of-pulse-with-java/335
**Category:** Pulse Physiology Engine
**Created:** [November 4, 2019, 12:22pm UTC](https://discourse.kitware.com/t/working-example-of-pulse-with-java/335 "2019-11-04T12:22:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![esteban.aliverti](https://discourse.kitware.com/user_avatar/discourse.kitware.com/esteban.aliverti/32/165_2.png) [@esteban.aliverti](https://discourse.kitware.com/u/esteban.aliverti)
#### Post date: [November 4, 2019, 12:22pm UTC](https://discourse.kitware.com/t/working-example-of-pulse-with-java/335/1 "2019-11-04T12:22:29Z")

</div>

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,

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [November 4, 2019, 2:30pm UTC](https://discourse.kitware.com/t/working-example-of-pulse-with-java/335/2 "2019-11-04T14:30:54Z")

</div>

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](https://gitlab.kitware.com/physiology/engine/blob/master/sdk/howto/java/com/kitware/physiology/pulse/engine/HowTo_EngineUse.java)

---

<div class="post-metadata">

### Author: ![esteban.aliverti](https://discourse.kitware.com/user_avatar/discourse.kitware.com/esteban.aliverti/32/165_2.png) [@esteban.aliverti](https://discourse.kitware.com/u/esteban.aliverti)
#### Post date: [January 23, 2020, 7:13am UTC](https://discourse.kitware.com/t/working-example-of-pulse-with-java/335/3 "2020-01-23T07:13:10Z")

</div>

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,

---

<div class="post-metadata">

### Author: ![esteban.aliverti](https://discourse.kitware.com/user_avatar/discourse.kitware.com/esteban.aliverti/32/165_2.png) [@esteban.aliverti](https://discourse.kitware.com/u/esteban.aliverti)
#### Post date: [January 23, 2020, 7:51am UTC](https://discourse.kitware.com/t/working-example-of-pulse-with-java/335/4 "2020-01-23T07:51:13Z")

</div>

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

Regards,
