title: Error "Unable to access jarfile" after execute script .sh in Ubuntu
body: <p>I have a problem when executing my servidor.sh. It contains:</p>
  
  <pre><code>#!/bin/bash
  echo "Running..."
  java -jar $HOME/servidor.jar
  </code></pre>
  
  <p>I execute servidor.sh and the result is:</p>
  
  <pre><code>alumno@uned:~$ sh servidor.sh
  Running...
  Error: Unable to access jarfile /home/alumno/servidor.jar
  </code></pre>
  
  <p>I am in Ubuntu from a VirtualBox machine.
  servidor.jar has permission to execute and I think it is in the correct location because I can launch it without error with java -jar servidor.jar from shell:</p>
  
  <pre><code>alumno@uned:~$ java -jar servidor.jar
  Inicializando servicios...
   &gt;&gt; ServicioAutenticacion
   &gt;&gt; ServicioDatos
   &gt;&gt; ServicioGestor
  </code></pre>
  
  <p>I've tried all the solutions that are in other posts but without results.
  I am crazy because I need a solution and I do not know what more can I do.</p>