title: Java (J2SE) Bluetooth Low Energy (BLE)
body: <p>I'm trying to connect to a Bluetooth Low-Energy (BLE) Sensor using Java. So far I searched for a library that interfaces with the BlueZ stack on my Linux. </p>
  
  <p>The only free library I found for Java was Bluecove but it seems, that they don't implement BLE.
  I checked if my BT dongle was working and recognizing the sensor using Linux command line tools </p>
  
  <pre><code>sudo hcitool lescan
  
  gatttool -i hci0 -b XX:XX:XX:XX:XX:XX -I
  </code></pre>
  
  <p>and it worked without problems.</p>
  
  <p>After that I tried the Bluecove example for DeviceDiscovery but my sensor didn't show up instead it scanned for normal BT devices. I couldn't find a way to scan for BLE devices.</p>
  
  <p>Doing further research I came to the conclusion that Bluecove just implements JSR-82.
  If I'm not mistaken this standard is older than BLE and therefore doesn't implement it.</p>
  
  <p>Are there any alternatives to Bluecove that support BLE in Java? I mean there should be because Android has no problems (in newer versions) to communicate with BLE devices.</p>
  
  <p>Thanks in advance!</p>