I have this pieace of code:
    Calendar ca=Calendar.getInstance();
    FileWriter fw = new FileWriter("Locations_Elapsed time iterations.txt", true);
    PrintWriter pw = new PrintWriter(fw);              
    ca.setTime(new Date());                      
    a++;
    pw.write("user " + a + " " + ca.get(Calendar.MILLISECOND));
    pw.println();
    pw.close();
It works fine when I run it with netbeans (ofcourse). I want to execute it on a server away from my machine which works with Linux, so I make a jar file to do this.
The problem is that it is not writing anything. Any ideas?
Thanks!
 
     
     
    