You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(29) |
Aug
(75) |
Sep
(32) |
Oct
(147) |
Nov
(31) |
Dec
(49) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(46) |
Feb
(35) |
Mar
(148) |
Apr
(33) |
May
(53) |
Jun
(46) |
Jul
(60) |
Aug
(44) |
Sep
(135) |
Oct
(23) |
Nov
(68) |
Dec
(42) |
2011 |
Jan
(94) |
Feb
(55) |
Mar
(114) |
Apr
(78) |
May
(64) |
Jun
(10) |
Jul
(31) |
Aug
(2) |
Sep
(25) |
Oct
(13) |
Nov
(8) |
Dec
(24) |
2012 |
Jan
(5) |
Feb
(33) |
Mar
(31) |
Apr
(19) |
May
(24) |
Jun
(23) |
Jul
(14) |
Aug
(15) |
Sep
(12) |
Oct
(3) |
Nov
(4) |
Dec
(19) |
2013 |
Jan
(8) |
Feb
(20) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
(4) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(6) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Arno P. <ar...@pu...> - 2011-04-18 15:51:41
|
Objective-C is a dynamically typed language. Even if methods are missing, the compiler will only issue a warning at best. You will only notice problems at runtime. Arno On Apr 18, 2011, at 7:31 AM, Shekar Mantha <sh...@mo...> wrote: > Hi All, > > I am trying to cross-compile some JDBC code (developed for Android) to > an iPhone target. I get a compilation error (in XCODE) for XMLVM > generated code constructs such as: > > _r22.d = [((java_sql_ResultSet*) _r0.o) getDouble___int:_r31.i]; > > I looked at the compat-lib for objc and the declaration for > java_sql_ResultSet interface (in file java_sql_ResultSet.h) has no > method definitions in it. So, I don't know why a construct such as: > > _r22.l = [((java_sql_ResultSet*) _r0.o) getLong___int:_r31.i]; > > seems to compile properly. > > Would someone know where the full definition for java_sql_ResultSet is, > so I can add an implementation for getDouble___int method? > > Thanks, > Shekar > > ------------------------------------------------------------------------------ > 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 |
From: Shekar M. <sh...@mo...> - 2011-04-18 15:27:03
|
On a similar note, I wonder how I can add and contribute support for java.text package (or for that matter any missing classes that I need) for Android development? Thanks. On 4/18/11 10:31 AM, Shekar Mantha wrote: > Hi All, > > I am trying to cross-compile some JDBC code (developed for Android) to > an iPhone target. I get a compilation error (in XCODE) for XMLVM > generated code constructs such as: > > _r22.d = [((java_sql_ResultSet*) _r0.o) getDouble___int:_r31.i]; > > I looked at the compat-lib for objc and the declaration for > java_sql_ResultSet interface (in file java_sql_ResultSet.h) has no > method definitions in it. So, I don't know why a construct such as: > > _r22.l = [((java_sql_ResultSet*) _r0.o) getLong___int:_r31.i]; > > seems to compile properly. > > Would someone know where the full definition for java_sql_ResultSet is, > so I can add an implementation for getDouble___int method? > > Thanks, > Shekar > > ------------------------------------------------------------------------------ > 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 > |
From: Shekar M. <sh...@mo...> - 2011-04-18 14:31:16
|
Hi All, I am trying to cross-compile some JDBC code (developed for Android) to an iPhone target. I get a compilation error (in XCODE) for XMLVM generated code constructs such as: _r22.d = [((java_sql_ResultSet*) _r0.o) getDouble___int:_r31.i]; I looked at the compat-lib for objc and the declaration for java_sql_ResultSet interface (in file java_sql_ResultSet.h) has no method definitions in it. So, I don't know why a construct such as: _r22.l = [((java_sql_ResultSet*) _r0.o) getLong___int:_r31.i]; seems to compile properly. Would someone know where the full definition for java_sql_ResultSet is, so I can add an implementation for getDouble___int method? Thanks, Shekar |
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" |
From: cpsingh <cp...@ak...> - 2011-04-16 11:38:05
|
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 > |
From: John C. <jc...@un...> - 2011-04-15 20:21:16
|
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" |
From: Arno P. <ar...@pu...> - 2011-04-15 16:31:16
|
XMLVM is open source and builds upon volunteers. I don't know of anyone working on this right now. If you have spare cycles, take a look at class Activity in src/android2iphone to get some inspiration on how fragments might be supported. Arno On Apr 15, 2011, at 6:27 PM, Marko Žmak <xm...@st...> wrote: > > Any plans for supporting them soon? > > On 15.4.2011 17:25, Arno Puder wrote: >> No. >> >> On Apr 15, 2011, at 6:01 PM, "Marko Žmak"<xm...@st...> wrote: >> >>> Are Android 3.0 Fragments suported by xmlvm? >>> >>> -- >>> Studio Artlan >>> Marko Žmak, dipl.ing.mat. >>> Mob: +385 98 212 801 >>> Email: xm...@st... >>> Web: http://www.studioartlan.com/ >>> >>> >>> ------------------------------------------------------------------------------ >>> 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 > > > -- > Studio Artlan > Marko Žmak, dipl.ing.mat. > Mob: +385 98 212 801 > Email: xm...@st... > Web: http://www.studioartlan.com/ > > > ------------------------------------------------------------------------------ > 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 |
From: Marko Ž. <xm...@st...> - 2011-04-15 16:27:47
|
Any plans for supporting them soon? On 15.4.2011 17:25, Arno Puder wrote: > No. > > On Apr 15, 2011, at 6:01 PM, "Marko Žmak"<xm...@st...> wrote: > >> Are Android 3.0 Fragments suported by xmlvm? >> >> -- >> Studio Artlan >> Marko Žmak, dipl.ing.mat. >> Mob: +385 98 212 801 >> Email: xm...@st... >> Web: http://www.studioartlan.com/ >> >> >> ------------------------------------------------------------------------------ >> 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 -- Studio Artlan Marko Žmak, dipl.ing.mat. Mob: +385 98 212 801 Email: xm...@st... Web: http://www.studioartlan.com/ |
From: Arno P. <ar...@pu...> - 2011-04-15 16:25:07
|
No. On Apr 15, 2011, at 6:01 PM, "Marko Žmak" <xm...@st...> wrote: > > Are Android 3.0 Fragments suported by xmlvm? > > -- > Studio Artlan > Marko Žmak, dipl.ing.mat. > Mob: +385 98 212 801 > Email: xm...@st... > Web: http://www.studioartlan.com/ > > > ------------------------------------------------------------------------------ > 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 |
From: Marko Ž. <xm...@st...> - 2011-04-15 16:01:30
|
Are Android 3.0 Fragments suported by xmlvm? -- Studio Artlan Marko Žmak, dipl.ing.mat. Mob: +385 98 212 801 Email: xm...@st... Web: http://www.studioartlan.com/ |
From: Arno P. <ar...@pu...> - 2011-04-15 09:02:24
|
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 |
From: John C. <jc...@un...> - 2011-04-14 23:55:15
|
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" |
From: Raghuram D. <dra...@gm...> - 2011-04-12 19:06:09
|
On Tue, Apr 12, 2011 at 2:58 AM, Arno Puder <ar...@pu...> wrote: > > the one-jar version of XMLVM (i.e., running it with xmlvm.jar) doesn't > work for some reason (probably has to do with a classpath problem). > > Please note that if you check out XMLVM under Eclipse, you will find a > launch configuration called "XMLVM - iSound". That should work. > > Indeed it does. Thanks a lot. Raghu. |
From: John C. <jc...@un...> - 2011-04-12 07:14:23
|
On Tue, Apr 12, 2011 at 12:03 AM, Arno Puder <ar...@pu...> wrote: > > The problem you are experiencing has to do with the fact that the Java > emulator does not handle labels with line breaks. > > When we began with the Java API for iOS, we also implemented the > behavior of the various widgets, which ended up being the Java emulator. > Note that this is a humongous task because you have to implement the > behavior of every iOS widget in Java. At some point we (the core team) > decided not to extend the Java emulator any further but focus our energy > on cross-compilation. If someone contributed patches to enhance this, we > would certainly be more than happy to add them to XMLVM. > OK, understood. Thanks, Arno! I will do what I can to help the project. I'm still intending to send you a patch for the HTML docs, but I still haven't figured out how to reliably convert an Android project to iPhone yet. > > On 4/11/11 11:42 PM, John Comeau wrote: >> The Java iPhone emulator that comes with xmlvm starts showing text in >> the middle (vertically) rather than top, and doesn't render linefeeds. >> See the difference between http://jc.unternet.net/blog/androidfail.png >> (with ant run-Android) and http://jc.unternet.net/blog/javafail.png >> (with ant run-Java); any ideas as to how to solve this? I tried >> changing my strings to "some string\r\n" but it didn't help the Java >> output, and it put a rectangular box at the end of the strings in the >> Android display. > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: Arno P. <ar...@pu...> - 2011-04-12 07:03:42
|
The problem you are experiencing has to do with the fact that the Java emulator does not handle labels with line breaks. When we began with the Java API for iOS, we also implemented the behavior of the various widgets, which ended up being the Java emulator. Note that this is a humongous task because you have to implement the behavior of every iOS widget in Java. At some point we (the core team) decided not to extend the Java emulator any further but focus our energy on cross-compilation. If someone contributed patches to enhance this, we would certainly be more than happy to add them to XMLVM. Arno On 4/11/11 11:42 PM, John Comeau wrote: > The Java iPhone emulator that comes with xmlvm starts showing text in > the middle (vertically) rather than top, and doesn't render linefeeds. > See the difference between http://jc.unternet.net/blog/androidfail.png > (with ant run-Android) and http://jc.unternet.net/blog/javafail.png > (with ant run-Java); any ideas as to how to solve this? I tried > changing my strings to "some string\r\n" but it didn't help the Java > output, and it put a rectangular box at the end of the strings in the > Android display. |
From: Arno P. <ar...@pu...> - 2011-04-12 06:58:29
|
the one-jar version of XMLVM (i.e., running it with xmlvm.jar) doesn't work for some reason (probably has to do with a classpath problem). Please note that if you check out XMLVM under Eclipse, you will find a launch configuration called "XMLVM - iSound". That should work. Arno On 4/9/11 4:46 AM, Raghuram Devarakonda wrote: > > Hi, > > I checked out xmlvm trunk, built it, and tried to run iphone demo > "isound". It didn't work as expected and I saw the following stack trace > on the terminal: > > ---------- > -trigger-java-simulator-task: > [java] Exception in thread "AWT-EventQueue-0" > java.lang.NoClassDefFoundError: > javazoom/jlgui/basicplayer/BasicPlayerException > [java] at > org.xmlvm.demo.isound.ISound.initAudioPlayer(ISound.java:126) > [java] at org.xmlvm.demo.isound.ISound.setupUI(ISound.java:118) > [java] at > org.xmlvm.demo.isound.ISound.applicationDidFinishLaunching(ISound.java:54) > [java] at > org.xmlvm.iphone.UIApplication$1.run(UIApplication.java:142) > [java] at > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) > [java] at > java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642) > [java] at java.awt.EventQueue.access$000(EventQueue.java:85) > [java] at java.awt.EventQueue$1.run(EventQueue.java:603) > [java] at java.awt.EventQueue$1.run(EventQueue.java:601) > [java] at java.security.AccessController.doPrivileged(Native > Method) > [java] at > java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) > [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:612) > [java] at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) > [java] at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) > [java] at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) > [java] at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) > [java] at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) > [java] at > java.awt.EventDispatchThread.run(EventDispatchThread.java:122) > [java] Caused by: java.lang.ClassNotFoundException: > javazoom.jlgui.basicplayer.BasicPlayerException > [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > [java] at java.security.AccessController.doPrivileged(Native > Method) > [java] at > java.net.URLClassLoader.findClass(URLClassLoader.java:190) > [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > [java] at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > [java] ... 18 more > ---------- > > I looked for class BasicPlayerException and it seems to be part of > basicplayer3.0.jar. This class is indeed being found at the build time > so I am guessing that for some reason, it is not making it to the run > time CLASSPATH. Either that or there is something wrong with my setup. > Note that I am able to run ifireworks demo without problems. I am > testing on Ubuntu, BTW. > > Any help is greatly appreciated. > > Thanks, > Raghu > > > > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: John C. <jc...@un...> - 2011-04-12 06:42:08
|
The Java iPhone emulator that comes with xmlvm starts showing text in the middle (vertically) rather than top, and doesn't render linefeeds. See the difference between http://jc.unternet.net/blog/androidfail.png (with ant run-Android) and http://jc.unternet.net/blog/javafail.png (with ant run-Java); any ideas as to how to solve this? I tried changing my strings to "some string\r\n" but it didn't help the Java output, and it put a rectangular box at the end of the strings in the Android display. -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: Raghuram D. <dra...@gm...> - 2011-04-09 11:46:28
|
Hi, I checked out xmlvm trunk, built it, and tried to run iphone demo "isound". It didn't work as expected and I saw the following stack trace on the terminal: ---------- -trigger-java-simulator-task: [java] Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javazoom/jlgui/basicplayer/BasicPlayerException [java] at org.xmlvm.demo.isound.ISound.initAudioPlayer(ISound.java:126) [java] at org.xmlvm.demo.isound.ISound.setupUI(ISound.java:118) [java] at org.xmlvm.demo.isound.ISound.applicationDidFinishLaunching(ISound.java:54) [java] at org.xmlvm.iphone.UIApplication$1.run(UIApplication.java:142) [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) [java] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642) [java] at java.awt.EventQueue.access$000(EventQueue.java:85) [java] at java.awt.EventQueue$1.run(EventQueue.java:603) [java] at java.awt.EventQueue$1.run(EventQueue.java:601) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:612) [java] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) [java] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) [java] Caused by: java.lang.ClassNotFoundException: javazoom.jlgui.basicplayer.BasicPlayerException [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [java] ... 18 more ---------- I looked for class BasicPlayerException and it seems to be part of basicplayer3.0.jar. This class is indeed being found at the build time so I am guessing that for some reason, it is not making it to the run time CLASSPATH. Either that or there is something wrong with my setup. Note that I am able to run ifireworks demo without problems. I am testing on Ubuntu, BTW. Any help is greatly appreciated. Thanks, Raghu |
From: John C. <jc...@un...> - 2011-04-08 02:58:24
|
When I build my own project after a "migrate" to xmlvm, as long as I use the "ant install" target it works, but if I try "ant run-Java" or "ant run-Android" it can't find the imports. Here is a "bad" run with "ant -v clean run-Java": [xmlvm.ajavac] Compilation arguments: [xmlvm.ajavac] '-d' [xmlvm.ajavac] '/home/jcomeau/rentacoder/marchie/GoogleLogin/bin/classes' [xmlvm.ajavac] '-classpath' [xmlvm.ajavac] '/home/jcomeau/rentacoder/marchie/GoogleLogin/bin/classes:/home/jcomeau/rentacoder/marchie/GoogleLogin:/usr/src/xmlvm/trunk/xmlvm/dist/xmlvm.jar:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/commons-codec-1.4.jar:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/commons-logging-1.1.1.jar:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/httpclient-4.0.1.jar:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/httpcore-4.0.1.jar:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/signpost-commonshttp4-1.2.1.1.jar:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/signpost-core-1.2.1.1.jar' [xmlvm.ajavac] '-sourcepath' [xmlvm.ajavac] '/home/jcomeau/rentacoder/marchie/GoogleLogin/src:/home/jcomeau/rentacoder/marchie/GoogleLogin/gen' [xmlvm.ajavac] '-target' [xmlvm.ajavac] '1.5' [xmlvm.ajavac] '-encoding' [xmlvm.ajavac] 'utf-8' [xmlvm.ajavac] '-g' **snip** [xmlvm.ajavac] Compiling 6 source files to /home/jcomeau/rentacoder/marchie/GoogleLogin/bin/classes [xmlvm.ajavac] /home/jcomeau/rentacoder/marchie/GoogleLogin/src/com/akibot/googlelogin/GoogleLogin.java:14: package org.json does not exist [xmlvm.ajavac] import org.json.JSONArray; [xmlvm.ajavac] ^ [xmlvm.ajavac] /home/jcomeau/rentacoder/marchie/GoogleLogin/src/com/akibot/googlelogin/GoogleLogin.java:15: package org.json does not exist [xmlvm.ajavac] import org.json.JSONObject; [xmlvm.ajavac] ^ [xmlvm.ajavac] /home/jcomeau/rentacoder/marchie/GoogleLogin/src/com/akibot/googlelogin/OAuthRequestTokenTask.java:8: cannot find symbol [xmlvm.ajavac] symbol : class AsyncTask [xmlvm.ajavac] location: package android.os [xmlvm.ajavac] import android.os.AsyncTask; [xmlvm.ajavac] ^ [xmlvm.ajavac] /home/jcomeau/rentacoder/marchie/GoogleLogin/src/com/akibot/googlelogin/OAuthRequestTokenTask.java:21: cannot find symbol [xmlvm.ajavac] symbol: class AsyncTask And here is a "good" one with "ant -v -s build.xml.back clean install" ; note the much larger classpath string and the presence of a bootclasspath: [javac] Compilation arguments: [javac] '-d' [javac] '/home/jcomeau/rentacoder/marchie/GoogleLogin/bin/classes' [javac] '-classpath' [javac] '/home/jcomeau/rentacoder/marchie/GoogleLogin/bin/classes:/home/jcomeau/rentacoder/marchie/GoogleLogin:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/commons-codec-1.4.jar:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/commons-logging-1.1.1.jar:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/httpclient-4.0.1.jar:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/httpcore-4.0.1.jar:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/signpost-commonshttp4-1.2.1.1.jar:/home/jcomeau/rentacoder/marchie/GoogleLogin/libs/signpost-core-1.2.1.1.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/xercesImpl.jar:/usr/share/ant/lib/ant-jmf.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-javamail.jar:/usr/share/ant/lib/ant-apache-oro.jar:/usr/share/ant/lib/ant-stylebook.jar:/usr/share/ant/lib/ant-commons-logging.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-commons-net.jar:/usr/share/ant/lib/bcel.jar:/usr/share/ant/lib/ant-apache-log4j.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-jsch.jar:/usr/share/ant/lib/ant-apache-resolver.jar:/usr/share/ant/lib/ant-apache-bsf.jar:/usr/share/ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-apache-xalan2.jar:/usr/share/ant/lib/ant-trax.jar:/usr/share/ant/lib/ant-jdepend.jar:/usr/share/ant/lib/ant-apache-bcel.jar:/usr/lib/jvm/java-6-sun-1.6.0.24/lib/tools.jar' [javac] '-sourcepath' [javac] '/home/jcomeau/rentacoder/marchie/GoogleLogin/src:/home/jcomeau/rentacoder/marchie/GoogleLogin/gen' [javac] '-target' [javac] '1.5' [javac] '-bootclasspath' [javac] '/usr/src/android-sdk-linux_x86/platforms/android-3/android.jar:/usr/src/android-sdk-linux_x86/add-ons/addon_google_apis_google_inc_3/libs/maps.jar' [javac] '-encoding' [javac] 'UTF-8' [javac] '-g' [javac] '-source' [javac] '1.5' Is this due to some step I failed to perform? The org.json and android.os stuff is in the bootclasspath jarfiles. -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: John C. <jc...@un...> - 2011-04-07 21:49:38
|
Thank you! "ant clean" was what I was failing to do. Apparently building for one target corrupts it for the other, and vice-versa. Both afireworks and xokoban work fine now. On Thu, Apr 7, 2011 at 2:23 PM, Panayotis Katsaloulis <pan...@pa...> wrote: > > On Apr 7, 2011, at 11:21 PM, John Comeau wrote: > > The AndroidManifest.xml of your demos all have minSdkVersion = "4". > > Yes I know, but this is a leftover. > Consider that all demos should work with minimum version 7. > > "svn diff" shows my current copy of aFireworks is unchanged. It works > fine using "ant run-Java". It fails with "ant run-Android". Same for > xokoban. The "sayhello" demo, on Android, works up to the point where > I click the button, then it fails. This was all using a 2.2.3 > emulator; for some reason, "sayhello" crashes on startup on a 1.6 > emulator. > > Still I didn't understand. > If you go to the xmlvm root directory, perform "ant clean ; ant jar" and > then go to the aFireworks directory and perform "ant run-Android", still > doesn't work? > The build files etc of the android demo projects are not 100% the same with > the project skeleton files. > Did you try with the official XMLVM project directory and failed? (with > version 2.1 of Android SDK?) > > > > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > 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" |
From: Panayotis K. <pan...@pa...> - 2011-04-07 21:23:37
|
On Apr 7, 2011, at 11:21 PM, John Comeau wrote: > > The AndroidManifest.xml of your demos all have minSdkVersion = "4". Yes I know, but this is a leftover. Consider that all demos should work with minimum version 7. > > "svn diff" shows my current copy of aFireworks is unchanged. It works > fine using "ant run-Java". It fails with "ant run-Android". Same for > xokoban. The "sayhello" demo, on Android, works up to the point where > I click the button, then it fails. This was all using a 2.2.3 > emulator; for some reason, "sayhello" crashes on startup on a 1.6 > emulator. Still I didn't understand. If you go to the xmlvm root directory, perform "ant clean ; ant jar" and then go to the aFireworks directory and perform "ant run-Android", still doesn't work? The build files etc of the android demo projects are not 100% the same with the project skeleton files. Did you try with the official XMLVM project directory and failed? (with version 2.1 of Android SDK?) |
From: John C. <jc...@un...> - 2011-04-07 20:21:44
|
2011/4/7 Panayotis Katsaloulis <pan...@pa...>: > Before speaking about the error messages, I clearly want to understand what you do. > > Have you tried the unmodified aFireworks project with your configuration? > Did it worked? > If it didn't, which version of Google API's are you using? > > Here, in XMLVM we practically only support 2.1 onwards and JDK 1.6.\ The AndroidManifest.xml of your demos all have minSdkVersion = "4". "svn diff" shows my current copy of aFireworks is unchanged. It works fine using "ant run-Java". It fails with "ant run-Android". Same for xokoban. The "sayhello" demo, on Android, works up to the point where I click the button, then it fails. This was all using a 2.2.3 emulator; for some reason, "sayhello" crashes on startup on a 1.6 emulator. -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: Arno P. <ar...@pu...> - 2011-04-07 19:57:28
|
unfortunately the documentation is out of sync with the actual implementation. The cpp target does not exist anymore. We are working on adding a target for C (which is a subset of C++). If you select --target=c, you will get portable C code. If you select --target=posix, you get a ready to use Makefile plus all dependent classes. Arno On 4/7/11 12:04 PM, hka...@go... wrote: > Hello list, > > sorry new try (hopefully without html-tags). > > today I did my first steps with XMLVM, but I failed completely. I tried > to run an crosscompile from java (class) to C++. > So please help me, just only to start a simple Hello World cross compile! > > What I did: > - I checked out the trunk > - started eclipse > - created a own project xmlvmDemoTests > - create a test class in the project > *package*com.dummy.xmlvm.demo;** > * public**class*Test { > *public**static**void*main(String[] args) { > System./out/.println("hello world"); > } > } > - created a launch configuration with: > project=xmlvm > Main class=org.xmlvm.Main > Program arguments=--debug=all > --in=${project_loc:/xmlvmDemoTests}/bin/ > --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=cpp > > I started the launch config and now I get cpp is an unkown target??? But > the documentation says: |cpp|: The input files are cross-compiled to C++. > > - okay I do not give up so easily, now I tried to crosscompile against > XMLVMjvm. Changed launch configuration programm arguments to: > Program arguments=--debug=all > --in=${project_loc:/xmlvmDemoTests}/bin/ > --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=jvm > > Now I get: Could not create target process for target JVM. But the > documentations says: jvm: The input files are cross-compiled to XMLVMJVM. > > - okay even now I do not give up easily, I tried to crosscompile against > xmlvm. Changed launch configuration programm arguments to: > Program arguments=--debug=all > --in=${project_loc:/xmlvmDemoTests}/bin/ > --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=xmlvm > > Now I get the following console-output: > [04/07/11 20:25:58.189] DEBUG: Instantiated: > org.xmlvm.proc.in.InputProcess$ClassInputProcess > [04/07/11 20:25:58.189] DEBUG: Instantiated: > org.xmlvm.proc.in.InputProcess$ClassInputProcess for > "C:\Projects\xmlvm\trunk\xmlvmDemoTests\bin\com\dummy\xmlvm\demo\Test.class" > [04/07/11 20:25:58.189] DEBUG: Instantiated: > org.xmlvm.proc.out.XmlvmOutputProcess > [04/07/11 20:25:58.189] DEBUG: Instantiated: > org.xmlvm.proc.out.RecursiveResourceLoadingProcess > [04/07/11 20:25:58.204] DEBUG: Adding preprocess > org.xmlvm.proc.out.RecursiveResourceLoadingProcess to process > org.xmlvm.proc.out.XmlvmOutputProcess > [04/07/11 20:25:58.236] DEBUG: UniversalFileCreator: Could not find > either resource: (One-JAR resource: /redlist.txt / file system resource: > lib/redlist.txt) > [04/07/11 20:25:58.236] DEBUG: Instantiated: > org.xmlvm.proc.out.DEXmlvmOutputProcess > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at > org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > Caused by: java.lang.NullPointerException > at > org.xmlvm.proc.out.DEXmlvmOutputProcess.initializeRedList(DEXmlvmOutputProcess.java:461) > at > org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:264) > at > org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:238) > ... 11 more > [04/07/11 20:25:58.251] DEBUG: Instantiated: > org.xmlvm.proc.out.ExeToXmlvmProcess > [04/07/11 20:25:58.251] DEBUG: Adding preprocess > org.xmlvm.proc.out.ExeToXmlvmProcess to process > org.xmlvm.proc.out.RecursiveResourceLoadingProcess > [04/07/11 20:25:58.251] DEBUG: Instantiated: > org.xmlvm.proc.out.XmlvmToXmlvmProcess > [04/07/11 20:25:58.251] DEBUG: Adding preprocess > org.xmlvm.proc.out.XmlvmToXmlvmProcess to process > org.xmlvm.proc.out.RecursiveResourceLoadingProcess > java.lang.NoSuchMethodException: > org.xmlvm.proc.in.InputProcess$ExeInputProcess.<init>(org.xmlvm.main.Arguments) > at java.lang.Class.getConstructor0(Class.java:2706) > at java.lang.Class.getConstructor(Class.java:1657) > at > org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > java.lang.NoSuchMethodException: > org.xmlvm.proc.in.InputProcess$XmlvmInputProcess.<init>(org.xmlvm.main.Arguments) > at java.lang.Class.getConstructor0(Class.java:2706) > at java.lang.Class.getConstructor(Class.java:1657) > at > org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > [04/07/11 20:25:58.251] ERROR: There are still 1 processes left. > [04/07/11 20:25:58.251] ERROR: Something went wrong during processing. > > So please help a new user to get started. > > best regards, > Hans > > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: <hka...@go...> - 2011-04-07 19:04:25
|
Hello list, sorry new try (hopefully without html-tags). today I did my first steps with XMLVM, but I failed completely. I tried to run an crosscompile from java (class) to C++. So please help me, just only to start a simple Hello World cross compile! What I did: - I checked out the trunk - started eclipse - created a own project xmlvmDemoTests - create a test class in the project *package*com.dummy.xmlvm.demo;** * public**class*Test { *public**static**void*main(String[] args) { System./out/.println("hello world"); } } - created a launch configuration with: project=xmlvm Main class=org.xmlvm.Main Program arguments=--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=cpp I started the launch config and now I get cpp is an unkown target??? But the documentation says: |cpp|: The input files are cross-compiled to C++. - okay I do not give up so easily, now I tried to crosscompile against XMLVMjvm. Changed launch configuration programm arguments to: Program arguments=--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=jvm Now I get: Could not create target process for target JVM. But the documentations says: jvm: The input files are cross-compiled to XMLVMJVM. - okay even now I do not give up easily, I tried to crosscompile against xmlvm. Changed launch configuration programm arguments to: Program arguments=--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=xmlvm Now I get the following console-output: [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.in.InputProcess$ClassInputProcess [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.in.InputProcess$ClassInputProcess for "C:\Projects\xmlvm\trunk\xmlvmDemoTests\bin\com\dummy\xmlvm\demo\Test.class" [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.out.XmlvmOutputProcess [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.out.RecursiveResourceLoadingProcess [04/07/11 20:25:58.204] DEBUG: Adding preprocess org.xmlvm.proc.out.RecursiveResourceLoadingProcess to process org.xmlvm.proc.out.XmlvmOutputProcess [04/07/11 20:25:58.236] DEBUG: UniversalFileCreator: Could not find either resource: (One-JAR resource: /redlist.txt / file system resource: lib/redlist.txt) [04/07/11 20:25:58.236] DEBUG: Instantiated: org.xmlvm.proc.out.DEXmlvmOutputProcess java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) Caused by: java.lang.NullPointerException at org.xmlvm.proc.out.DEXmlvmOutputProcess.initializeRedList(DEXmlvmOutputProcess.java:461) at org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:264) at org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:238) ... 11 more [04/07/11 20:25:58.251] DEBUG: Instantiated: org.xmlvm.proc.out.ExeToXmlvmProcess [04/07/11 20:25:58.251] DEBUG: Adding preprocess org.xmlvm.proc.out.ExeToXmlvmProcess to process org.xmlvm.proc.out.RecursiveResourceLoadingProcess [04/07/11 20:25:58.251] DEBUG: Instantiated: org.xmlvm.proc.out.XmlvmToXmlvmProcess [04/07/11 20:25:58.251] DEBUG: Adding preprocess org.xmlvm.proc.out.XmlvmToXmlvmProcess to process org.xmlvm.proc.out.RecursiveResourceLoadingProcess java.lang.NoSuchMethodException: org.xmlvm.proc.in.InputProcess$ExeInputProcess.<init>(org.xmlvm.main.Arguments) at java.lang.Class.getConstructor0(Class.java:2706) at java.lang.Class.getConstructor(Class.java:1657) at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) java.lang.NoSuchMethodException: org.xmlvm.proc.in.InputProcess$XmlvmInputProcess.<init>(org.xmlvm.main.Arguments) at java.lang.Class.getConstructor0(Class.java:2706) at java.lang.Class.getConstructor(Class.java:1657) at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) [04/07/11 20:25:58.251] ERROR: There are still 1 processes left. [04/07/11 20:25:58.251] ERROR: Something went wrong during processing. So please help a new user to get started. best regards, Hans |
From: <hka...@go...> - 2011-04-07 18:45:05
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> </head> <body text="#000000" bgcolor="#ffffff"> Hello list,<br> <br> today I did my first steps with XMLVM, but I failed completely. I tried to run an crosscompile from java (class) to C++.<br> So please help me, just only to start a simple Hello World cross compile!<br> <br> What I did:<br> - I checked out the trunk<br> - started eclipse<br> - created a own project xmlvmDemoTests<br> - create a test class in the project<br> <tt><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);">package</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;"> com.dummy.xmlvm.demo;</span><span style="font-size: 10pt; font-family: "Courier New";"></span><span style="font-size: 10pt; font-family: "Courier New";"></span><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US"></span></b><br> <b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US"> public</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> </span><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US">class</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> Test {</span><span style="font-size: 10pt; font-family: "Courier New";" lang="EN-US"></span><br> <span style="font-size: 10pt; font-family: "Courier New";" lang="EN-US"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> </span><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US">public</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> </span><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US">static</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> </span><b><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(127, 0, 85);" lang="EN-US">void</span></b><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> main(String[] args) {</span><span style="font-size: 10pt; font-family: "Courier New";" lang="EN-US"></span><br> <span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> System.</span><i><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 192);" lang="EN-US">out</span></i><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">.println(</span><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(42, 0, 255);" lang="EN-US">"hello world"</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">);</span><span style="font-size: 10pt; font-family: "Courier New";" lang="EN-US"></span><br> <span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;">}</span><span style="font-size: 10pt; font-family: "Courier New";"></span><br> <span style="font-size: 10pt; font-family: "Courier New"; color: black;"> }<br> </span></tt><span style="font-size: 10pt; font-family: "Courier New"; color: black;">- created a launch configuration with: <br> project=xmlvm </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"></span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"><br> Main class=org.xmlvm.Main<br> Program arguments=</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"></span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=cpp<br> <br> I started the launch config and now I get cpp is an unkown target??? But the documentation says: </span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="font-family: arial,tahoma; font-size: 13px;"><code style="color: rgb(0, 96, 0); font-weight: bold; font-family: 'Courier New',monospace;">cpp</code>: The input files are cross-compiled to C++.</span></span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"><br> <br> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;">- okay I do not give up so easily, now I tried to crosscompile against XMLVMjvm. Changed launch configuration programm arguments to: <br> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> Program arguments=</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"></span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=jvm</span><br> <span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"><br> Now I get: Could not create target process for target JVM. But the documentations says: jvm: The input files are cross-compiled to XMLVMJVM.<br> <br> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;">- okay even now I do not give up easily, I tried to crosscompile against xmlvm. Changed launch configuration programm arguments to: <br> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"> Program arguments=</span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"></span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">--debug=all --in=${project_loc:/xmlvmDemoTests}/bin/ --out=${project_loc:/xmlvmDemoTests}/xmlvm-gen --target=xmlvm</span><br> <span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US"><br> </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;" lang="EN-US">Now I get the following console-output:<br> [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.in.InputProcess$ClassInputProcess<br> [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.in.InputProcess$ClassInputProcess for "C:\Projects\xmlvm\trunk\xmlvmDemoTests\bin\com\dummy\xmlvm\demo\Test.class"<br> [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.out.XmlvmOutputProcess<br> [04/07/11 20:25:58.189] DEBUG: Instantiated: org.xmlvm.proc.out.RecursiveResourceLoadingProcess<br> [04/07/11 20:25:58.204] DEBUG: Adding preprocess org.xmlvm.proc.out.RecursiveResourceLoadingProcess to process org.xmlvm.proc.out.XmlvmOutputProcess<br> [04/07/11 20:25:58.236] DEBUG: UniversalFileCreator: Could not find either resource: (One-JAR resource: /redlist.txt / file system resource: lib/redlist.txt)<br> [04/07/11 20:25:58.236] DEBUG: Instantiated: org.xmlvm.proc.out.DEXmlvmOutputProcess<br> java.lang.reflect.InvocationTargetException<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br> at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137)<br> at org.xmlvm.Main.main(Main.java:53)<br> Caused by: java.lang.NullPointerException<br> at org.xmlvm.proc.out.DEXmlvmOutputProcess.initializeRedList(DEXmlvmOutputProcess.java:461)<br> at org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:264)<br> at org.xmlvm.proc.out.DEXmlvmOutputProcess.<init>(DEXmlvmOutputProcess.java:238)<br> ... 11 more<br> [04/07/11 20:25:58.251] DEBUG: Instantiated: org.xmlvm.proc.out.ExeToXmlvmProcess<br> [04/07/11 20:25:58.251] DEBUG: Adding preprocess org.xmlvm.proc.out.ExeToXmlvmProcess to process org.xmlvm.proc.out.RecursiveResourceLoadingProcess<br> [04/07/11 20:25:58.251] DEBUG: Instantiated: org.xmlvm.proc.out.XmlvmToXmlvmProcess<br> [04/07/11 20:25:58.251] DEBUG: Adding preprocess org.xmlvm.proc.out.XmlvmToXmlvmProcess to process org.xmlvm.proc.out.RecursiveResourceLoadingProcess<br> java.lang.NoSuchMethodException: org.xmlvm.proc.in.InputProcess$ExeInputProcess.<init>(org.xmlvm.main.Arguments)<br> at java.lang.Class.getConstructor0(Class.java:2706)<br> at java.lang.Class.getConstructor(Class.java:1657)<br> at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137)<br> at org.xmlvm.Main.main(Main.java:53)<br> java.lang.NoSuchMethodException: org.xmlvm.proc.in.InputProcess$XmlvmInputProcess.<init>(org.xmlvm.main.Arguments)<br> at java.lang.Class.getConstructor0(Class.java:2706)<br> at java.lang.Class.getConstructor(Class.java:1657)<br> at org.xmlvm.proc.XmlvmProcessImpl.createInputInstances(XmlvmProcessImpl.java:127)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:241)<br> at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:217)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:152)<br> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137)<br> at org.xmlvm.Main.main(Main.java:53)<br> [04/07/11 20:25:58.251] ERROR: There are still 1 processes left.<br> [04/07/11 20:25:58.251] ERROR: Something went wrong during processing.<br> <br> So please help a new user to get started.<br> <br> best regards,<br> Hans<br> </span> </body> </html> |