I used the following lines at my main() method, I hope this is the right way to do it:

 

System.out.println("Iniciando variables del programa");

            System.setProperty("derby.storage.tempDirectory",System.getProperty("java.io.tmpdir"));

 

 

Thanks again