From: <php...@li...> - 2010-11-16 20:03:21
|
Hi, please double check your php code. You access an attribute where you should have called a method. Php is an insane programming language, so you may run into unexpected errors if you aren't careful. Regards, Jost Bökemeier Am 16.11.2010 09:21 schrieb <php...@li...>: > Hi > > I have a java class that return a date. I would like to use the java > DateFormatter class to format the date, but it gives me an error. > > Sample: > > $hello= new java("mytest.services.MyService"); > $date=java_values($hello->mydate); > $df = new JavaClass('java.text.DateFormat'); > $formater = $df->getDateInstance($df->SHORT); > $echo("formater->format($date"); > > Result is: Uncaught [[o:Exception]:"java.lang.Exception: GetProperty > failed: [[o:SimpleDateFormat]]->format. Cause: > java.lang.NoSuchFieldException: format (with args:) > > But the DateFormat class does have a format method. > > > Hermod > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > This email with attachments is solely for the use of the individual or > entity to whom it is addressed. Please also be aware that the DnB NOR Group > cannot accept any payment orders or other legally binding correspondence with > customers as a part of an email. > > This email message has been virus checked by the anti virus programs used > in the DnB NOR Group. > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |