title: How to use a preexisting unix library in java
body: <p>I was using the following code without any problem for my app.</p>
  
  <pre><code>inputstream = Runtime.getRuntime().exec("/system/bootmenu/recovery/sbin/tune2fs -l /data.img").getInputStream();
  </code></pre>
  
  <p>However recently the tune2fs executable was replaced by tune2fs library. I cant no longer get this code to work.</p>
  
  <p>I tried :</p>
  
  <pre><code>inputstream = Runtime.getRuntime().exec("/system/bootmenu/recovery/sbin/tune2fs -l data.img",new String[]{"LD_LIBRARY_PATH=/system/bootmenu/recovery/sbin:$LD_LIBRARY_PATH"}).getInputStream();
  </code></pre>
  
  <p>But without sucess, how do I solve this problem?</p>