JAVA_HOME on mac
export JAVA_HOME=/Library/Java/Home
In case of personal memory failures...
After spending an enormous amount of time trying to include the time with a java.sql.Date call to a Stored Procedure through CallableStamtent I found out that CS also accepts Timestamp...that really made my day =)
FileOutputStream fs = new FileOutputStream( ABSOLUTE_PATH_TO_FILE );
fs.write( SOME_DATA );
fs.close();
// Use SimpleDateFormat to format the display of date Strings
SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
return sdf.format(new Date());
// Read each line of the file infile.txt
BufferedReader rdr = new BufferedReader( new InputStreamReader(new FileInputStream("infile.txt"), "ISO-8859-1"));
String line = rdr.readLine();