SimpleDateFormat works with JBuilder 9 but not JBuilder X


2005-02-16 10:39:19 AM
jbuilder6
Compiles okay but gives a runtime fileNotFoundException when looking for
sun.util.calendar.ZoneInfoFile$1, ZoneInfoFile.java
Is this a known issue ? Thanks.
Henry Eck
SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yy");
ParsePosition pp = new ParsePosition(0);
Date dummyDate;
...
// return true if the string is a date
boolean isDate (String str) {
// now try to convert date strings
pp.setIndex(0);
dummyDate = sdf.parse(str,pp);
if (dummyDate == null)
return (false);
else
return (true);
}