From: John C. <jc...@un...> - 2011-04-16 17:24:59
|
Singh, this looks like a similar problem to what I was having, which was fixed by running "ant clean" before the final build. Hope this helps -- jc On Sat, Apr 16, 2011 at 1:15 AM, cpsingh <cp...@ak...> wrote: > Hi > > I am a new user and i have an existing java program which i have tried to > cross compiled to Iphone using xmlvm but when i am trying to build the > things in Iphone then it is not compiling properly. When i have fixed some > of the issues then it is compiling properly but it is giving error byte code > is missing. Please help me out from this problem. What i have done is the > following > > 1) checout the xmlvm from svn in windows based machine. > 2) compiled the source using ant script and make the xmlvm.jar > 3) cross compiled the existing java program using xmlvm and produced the > objective c source code. > 4) then shifted the cross compiled source code to mac machine and building > the whole thing using xcode as mentioned in the manual.pdf. > 5) It gives some error during compilation. Fixed the things and compile it > again. > 6) Able to execute but the program is giving error at run time "byte code is > missing" > > Pls help me > > Regards > > > CP Singh > > ----- Original Message ----- > From: "John Comeau" <jc...@un...> > To: "Arno Puder" <ar...@pu...> > Cc: <xml...@li...> > Sent: Saturday, April 16, 2011 01:51 > Subject: Re: [xmlvm-users] android.text.method > > >> Attaching a patch to enable a workaround such as: >> --------------- >> public void onCreate(Bundle savedInstanceState) { >> super.onCreate(savedInstanceState); >> tv = new TextView(this); >> try { >> Class <? extends MovementMethod> movementMethod = >> Class.forName( >> "android.text.method.ScrollingMovementMethod").asSubclass( >> MovementMethod.class); >> tv.setMovementMethod(movementMethod.newInstance()); >> } catch (Exception noScroll) { >> log("Cannot set scrolling: " + noScroll); >> } >> setContentView(tv); >> --------------- >> >> Nothing fancy, just a stub and adding setMovementMethod() to TextView. >> >> On Fri, Apr 15, 2011 at 7:52 AM, John Comeau <jc...@un...> wrote: >>> Ah, OK. Thanks Arno -- jc >>> >>> On Fri, Apr 15, 2011 at 2:02 AM, Arno Puder <ar...@pu...> wrote: >>>> XMLVM does not support this currently. You can check in >>>> xmlvm/src/android2iphone to see which Android API we currently >>>> support. >>>> >>>> Arno >>>> >>>> On Apr 15, 2011, at 1:55 AM, John Comeau <jc...@un...> wrote: >>>> >>>>> I have a TextView that uses >>>>> android.text.method.ScrollingMovementMethod. "ant run-Android" works >>>>> fine, but "run-Java" and "run-Xcode" both complain "package >>>>> android.text.method.* does not exist". Any known workaround? I'm >>>>> building for Android level 8 (version 2.2). >>>>> -- >>>>> John Comeau <jc...@un...> http://jc.unternet.net/ >>>>> "A place for everything, and everything >>>>> all over the place" >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Benefiting from Server Virtualization: Beyond Initial Workload >>>>> Consolidation -- Increasing the use of server virtualization is a top >>>>> priority.Virtualization can reduce costs, simplify management, and >>>>> improve >>>>> application availability and disaster protection. Learn more about >>>>> boosting >>>>> the value of server virtualization. >>>>> http://p.sf.net/sfu/vmware-sfdev2dev >>>>> _______________________________________________ >>>>> xmlvm-users mailing list >>>>> xml...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>> >>> >>> >>> >>> -- >>> John Comeau <jc...@un...> http://jc.unternet.net/ >>> "A place for everything, and everything >>> all over the place" >>> >> >> >> >> -- >> John Comeau <jc...@un...> http://jc.unternet.net/ >> "A place for everything, and everything >> all over the place" >> > > > -------------------------------------------------------------------------------- > > >> ------------------------------------------------------------------------------ >> Benefiting from Server Virtualization: Beyond Initial Workload >> Consolidation -- Increasing the use of server virtualization is a top >> priority.Virtualization can reduce costs, simplify management, and improve >> application availability and disaster protection. Learn more about >> boosting >> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > > > -------------------------------------------------------------------------------- > > >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |