title: Unable to passing arguments to jar launcher into shell script
body: <p>i've the following problem, these is my shell script: </p>
  
  <pre><code>#!/bin/bash
  CONFIG_FOLDER=./config
  JAVA_HOME=/home/lorenzo/Downloads/jdk1.7.0_25/bin
  CHARSET=utf8
  $JAVA_HOME/java -DconfigFolder=$CONFIG_FOLDER -jar com.lorenzo.myapp.jar 
  </code></pre>
  
  <p>When I run the script I get the following error:</p>
  
  <pre><code>/java: not foundmyscript.sh: 5: myscritp.sh: /home/lorenzo/Downloads/jdk1.7.0_25/bin
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>P.S myscript.sh is the posted script.</p>
  
  <p>EDIT: </p>
  
  <p>I've found a partial solution:</p>
  
  <pre><code>#!/bin/bash
  CONFIG_FOLDER=./config
  export PATH=$PATH:/home/user/jdk1.7/bin
  java -DconfigFolder=$CONFIG_FOLDER -jar com.lorenzo.myapp.jar 
  </code></pre>
  
  <p>But now, I've another problem: the value of $CONFIG_FOLDER is empty when i run the script. Why? </p>