From: Markus N. <mar...@gm...> - 2012-09-08 17:39:37
|
Hi, The specific method you're trying to use isn't implemented in xmlvm yet. You'd have to implement it in src/xmlvm2c/lib/native/native_java_net_InetAddress.c by using appropriate native API. Another method in this file (getHostByAddrImpl) is already implemented so it should be fairly straightforward to implement getHostByNameImpl. Markus On Fri, Sep 7, 2012 at 8:54 PM, Anson Tai <an...@mo...> wrote: > Hi,Folks., > > I am using new ios api > > and when running the app, it shows the message , > > > *XMLVM Error: Unimplemented native method: > (java_net_InetAddress_getHostByNameImpl___java_lang_String_boolean):/Users/netmeeting/svn_repository/xmlvm/trunk/xmlvm/demo/iphone/RoomBooking/dist/../build/xcode/src/app/native_java_net_InetAddress.m:82 > * > > java code , > > URL url = new URL("http://xxx.xxx.xxxx.xxx/......"); //where it returns > json > > URLConnection tc = url.openConnection(); > > BufferedReader in = new BufferedReader(new InputStreamReader( > > tc.getInputStream(), "UTF-8")); > > > -- > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |