|
From: <php...@li...> - 2006-02-22 15:39:00
|
php...@li... wrote:
> $vevent = new
> Java("net.fortuna.ical4j.model.component.VEvent",(String)"20051225T190000",(String)"20051225T220000",(String)"Christmas
> Day");
> ...
> *Fatal error*: Uncaught [o(Exception):"java.lang.Exception:
> CreateInstance failed: new
> net.fortuna.ical4j.model.component.VEvent((Date)o(String),
> (Date)o(String), (String)o(String)). Cause:
> java.lang.IllegalArgumentException: argument type mismatch"] thrown in
> */var/www/java/ical4j-testing/test.php* on line *25*
you need to pass a java date object as first and second parameter, not a
string
i am not familiar with java but something like
$date = new Java('java.date',('20051225T190000');
could help
look add the java reference on how to create an java.date object
--
Sebastian Mendel
www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet
|