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-30 16:44:47
|
On 4/30/11 1:55 AM, Panayotis Katsaloulis wrote: > Is this the first step to produce unicode strings in xmlvm? > :-D yes. Look in file constant_pool.c that gets generated for an application. It contains all the referenced string encoded as a list of short that represent the default charset encoding. I described what is missing in another post (about the Charset). Arno |
From: Panayotis K. <pan...@pa...> - 2011-04-30 08:55:49
|
On Apr 30, 2011, at 10:26 AM, Arno Puder wrote: > Try adding --no-cache > I preferred to clean the project. After cleaning, I was able to build it again. Is this the first step to produce unicode strings in xmlvm? :-D |
From: Arno P. <ar...@pu...> - 2011-04-30 07:27:05
|
Try adding --no-cache On Apr 30, 2011, at 12:25 AM, Panayotis Katsaloulis <pan...@pa...> wrote: > I believe there is a problem with the implementation of XmlvmResource. > I was trying to compile a regular project, which was compiling fine with alder versions of XMLVM, and when processed by xmlvm, I got this exception. > > By tracking it down it seems that although the attribute "value" exists, the value "encoded-value" does not (is null). > The string in question is a regular 10-characters ascii string. > > > > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.simontuffs.onejar.Boot.run(Boot.java:306) > at com.simontuffs.onejar.Boot.main(Boot.java:159) > Caused by: java.lang.NumberFormatException: null > at java.lang.Integer.parseInt(Integer.java:417) > at java.lang.Integer.parseInt(Integer.java:499) > at org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) > at org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:116) > at org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > ... 6 more > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Panayotis K. <pan...@pa...> - 2011-04-30 07:25:12
|
I believe there is a problem with the implementation of XmlvmResource. I was trying to compile a regular project, which was compiling fine with alder versions of XMLVM, and when processed by xmlvm, I got this exception. By tracking it down it seems that although the attribute "value" exists, the value "encoded-value" does not (is null). The string in question is a regular 10-characters ascii string. Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:417) at java.lang.Integer.parseInt(Integer.java:499) at org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) at org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:116) at org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) ... 6 more |
From: Sascha H. <sa...@xm...> - 2011-04-29 16:52:08
|
On Fri, Apr 29, 2011 at 6:39 PM, hka...@go... < hka...@go...> wrote: > Hello list, > > Sorry I've been away on business. > > First of all many thanks for the quick reply and also the effort in finding > the issue! > Here my answers and questions go... > > @Arno: the ant clean and the manual delete of xmlvm/.cache didn't change > anything. > > I am not sure why this is happening. The error basically tells me that a > loaded resources is null. I could get rid of the error message, but I think > there is another issue here. Can you pleaserun xmlvm using "--debug=all" and > send me the complete log? There might be a pointer earlier in the log that > might give more insight into what is going wrong here. This simple example > should certainly work. > > The bugs seems to be hunted, do you need the logs anyway? > What do you mean by the bugs are hunted? Is your error gone? If not, please send me the log so I can take a look. Thanks. > > > I was able to reproduce this problem and we will take a look at it. Thanks > for finding! > > > Okay thanks! Is there any workaround available or maybe the patch/fix > itself? > We will most probably remove target=c. > > >> Can you imaging, that is really frustrating trying something and the >> simpliest things aren't running? >> >> Please provide simple examples AND a running launch config. I think this >> would do a easy kick start for users like me. >> And I can tell you I have mulitple years of experience in programming. >> But I have not the time to struggle around to get the simpliest things - >> from user view point - running. Currently I am evaluating, if xmlvm >> could be a possible "invest" for my team. But in that project state of >> xmlvm... >> >> Maybe it is a missing documentation, maybe it is the missing simple >> example or maybe both. But I am sure, if you just invest 30 min of your >> current effort in the place to get new users started, new users wouldn't >> turn around and giving up so fast. >> >> So hopefully the developers of this list would here my crying and try to >> fix the issues. >> And maybe you should freeze a running version by tagging/branching or >> providing a zip/tag.gz for the users. >> >> best regards, >> Hans >> > Have you considered to freeze a stable state, so users could use a > running version without the newest - maybe buggy - features? > We have. However at the moment XMLVM can still be considered "early" in some cases, which is why our current model is to make sure the trunk is stable in general. Bigger developments that need testing are done in branches first. So trunk should always be as stable as it gets. We will probably move to versions at some point when functionality is more complete. > Additionally, have you considered to provide run-targets to execute some > very simple examples? > I agree that we should provide more exmaples, especially on our documentation page. Thanks for your feedback! // Sascha |
From: <hka...@go...> - 2011-04-29 16:40:02
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#ffffff"> Hello list,<br> <br> Sorry I've been away on business. <br> <br> First of all many thanks for the quick reply and also the effort in finding the issue!<br> Here my answers and questions go...<br> <br> @Arno: the ant clean and the manual delete of xmlvm/.cache didn't change anything.<br> <blockquote cite="mid:BAN...@ma..." type="cite"> <div> <div class="gmail_quote"> <div>I am not sure why this is happening. The error basically tells me that a loaded resources is null. I could get rid of the error message, but I think there is another issue here. Can you pleaserun xmlvm using "--debug=all" and send me the complete log? There might be a pointer earlier in the log that might give more insight into what is going wrong here. This simple example should certainly work.</div> </div> </div> </blockquote> The bugs seems to be hunted, do you need the logs anyway?<br> <blockquote cite="mid:BAN...@ma..." type="cite"> <div> <div class="gmail_quote"> <div> </div> <div>I was able to reproduce this problem and we will take a look at it. Thanks for finding!</div> <div> </div> </div> </div> </blockquote> Okay thanks! Is there any workaround available or maybe the patch/fix itself?<br> <blockquote cite="mid:BAN...@ma..." type="cite"> <div> <div class="gmail_quote"> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <br> Can you imaging, that is really frustrating trying something and the<br> simpliest things aren't running?<br> <br> Please provide simple examples AND a running launch config. I think this<br> would do a easy kick start for users like me.<br> And I can tell you I have mulitple years of experience in programming.<br> But I have not the time to struggle around to get the simpliest things -<br> from user view point - running. Currently I am evaluating, if xmlvm<br> could be a possible "invest" for my team. But in that project state of<br> xmlvm...<br> <br> Maybe it is a missing documentation, maybe it is the missing simple<br> example or maybe both. But I am sure, if you just invest 30 min of your<br> current effort in the place to get new users started, new users wouldn't<br> turn around and giving up so fast.<br> <br> So hopefully the developers of this list would here my crying and try to<br> fix the issues.<br> And maybe you should freeze a running version by tagging/branching or<br> providing a zip/tag.gz for the users.<br> <br> best regards,<br> Hans<br> </blockquote> </div> </div> </blockquote> Have you considered to freeze a stable state, so users could use a running version without the newest - maybe buggy - features?<br> Additionally, have you considered to provide run-targets to execute some very simple examples?<br> <br> best regards,<br> Hans<br> </body> </html> |
From: Markus H. <ma...@ti...> - 2011-04-29 13:52:51
|
Hi, I have created a fresh project with java -Xmx512M -jar xmlvm.jar --skeleton=iphone --app-name=test I have changed the build files to use the iphonec target instead of the iphone target. Compilation in XCode fails: /tmp/test/dist/../build/xcode/src/app/org_xmlvm_iphone_UIImage.m:29:38: error: org_xmlvm_iphone_CGImage.h: No such file or directory Regards, Markus |
From: John C. <jc...@un...> - 2011-04-29 06:19:51
|
Using --no-cache fixed the problem. When you told me 'do an "ant clean" and remove all .cache directories. Then try again' I mistakenly assumed you meant both things were to be done in the xmlvm sources, not the first in xmlvm and the second in my test build directory. And after running "ant clean" I did "find . -name .cache" and didn't find anything, so assumed you had meant "ant clean" would remove the .cache directories to which you were referring. Anyway, the latest build error is: gcc -w -std=c99 -I../src -c ../src/native_java_io_File.c -o build/obj/native_java_io_File.o ../src/native_java_io_File.c: In function ‘java_io_File_isDirectoryImpl___byte_1ARRAY’: ../src/native_java_io_File.c:94: error: ‘S_IFDIR’ undeclared (first use in this function) ../src/native_java_io_File.c:94: error: (Each undeclared identifier is reported only once ../src/native_java_io_File.c:94: error: for each function it appears in.) make[1]: *** [build/obj/native_java_io_File.o] Error 1 make[1]: Leaving directory `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' make: *** [default] Error 2 On Thu, Apr 28, 2011 at 11:10 PM, Arno Puder <ar...@pu...> wrote: > > well, that means that there is a .cache directory floating around somewhere > that still has some .xmlvm cached from before the constant pool update. > > Can you please send another message on the mailing list to say --no-cache > fixed the problem? > > Thanks, > Arno > > > On 4/28/11 11:08 PM, John Comeau wrote: >> >> OK, using --no-cache it built. Now I need to install the garbage >> collector before continuing. >> >> On Thu, Apr 28, 2011 at 11:05 PM, John Comeau<jc...@un...> wrote: >>> >>> This is the same HelloWorld test that Hans posted yesterday, I'm still >>> trying to help with it. >>> >>> Currently rebuilding with --no-cache as requested. >>> >>> On Thu, Apr 28, 2011 at 11:00 PM, John Comeau<jc...@un...> wrote: >>>> >>>> On Thu, Apr 28, 2011 at 10:53 PM, Arno Puder<ar...@pu...> wrote: >>>>> >>>>> John: this is related to the new string handling, but without seeing >>>>> the >>>>> program, I can't tell what is going wrong. In >>>>> XmlvmConstantStringElement.getLength() (which is the origin of the >>>>> problem >>>>> according to the stack trace), can you print out all members of >>>>> XmlvmConstantStringElement? This will generate a lot of output, but >>>>> just >>>>> before the exception is thrown, we should see which string constant is >>>>> causing the problem. >>>>> >>>>> Arno >>>>> >>>>> >>>>> On 4/28/11 10:44 PM, John Comeau wrote: >>>>>> >>>>>> Done. Exactly same result. >>>>>> >>>>>> On Thu, Apr 28, 2011 at 10:35 PM, Arno Puder<ar...@pu...> wrote: >>>>>>> >>>>>>> do an "ant clean" and remove all .cache directories. Then try again. >>>>>>> >>>>>>> Arno >>>>>>> >>>>>>> >>>>>>> On 4/28/11 10:34 PM, John Comeau wrote: >>>>>>>> >>>>>>>> Thanks, Arno. My bad, should have updated before posting. But now I >>>>>>>> get: >>>>>>>> >>>>>>>> jcomeau@intrepid:~/rentacoder/xmlvm$ make >>>>>>>> mkdir -p generated/posix/src >>>>>>>> cd src&& javac -d ../bin test/*.java >>>>>>>> java -Xmx1G -jar /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar \ >>>>>>>> --in=bin \ >>>>>>>> --out=generated/posix/src --target=posix \ >>>>>>>> --app-name=xmlvm-test >>>>>>>> Exception in thread "main" >>>>>>>> java.lang.reflect.InvocationTargetException >>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>>>>> at >>>>>>>> >>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>>>>>> at >>>>>>>> >>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>>>>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>>>>>> at com.simontuffs.onejar.Boot.run(Boot.java:306) >>>>>>>> at com.simontuffs.onejar.Boot.main(Boot.java:159) >>>>>>>> Caused by: java.lang.NumberFormatException: null >>>>>>>> at java.lang.Integer.parseInt(Integer.java:417) >>>>>>>> at java.lang.Integer.parseInt(Integer.java:499) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:115) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> >>>>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>>>> at >>>>>>>> org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) >>>>>>>> at >>>>>>>> org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) >>>>>>>> at org.xmlvm.Main.main(Main.java:53) >>>>>>>> ... 6 more >>>>>>>> >>>>>>>> Source tree is at http://unternet.net/xmlvm/ is current. >>>>>>>> >>>>>>>> On Thu, Apr 28, 2011 at 10:13 PM, Arno Puder<ar...@pu...> >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> you don't seem to be using the latest version. We removed the >>>>>>>>> manual >>>>>>>>> bundling of the Boehm GC and for the --target=posix we now expect a >>>>>>>>> local installation of the Boehm GC (the boehmgc.jar that is bundled >>>>>>>>> with >>>>>>>>> XMLVM is specifically for iOS). After a svn update, re-generate >>>>>>>>> your >>>>>>>>> project and check the comments in the Makefile. >>>>>>>>> >>>>>>>>> Arno >>>>>>>>> >>>>>>>>> >>>>>>>>> On 4/28/11 10:10 PM, John Comeau wrote: >>>>>>>>>> >>>>>>>>>> Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm >>>>>>>>>> compiler finished; but the resulting C source has an error, see >>>>>>>>>> output >>>>>>>>>> of 'make' below. >>>>>>>>>> >>>>>>>>>> jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make >>>>>>>>>> make[1]: Entering directory >>>>>>>>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>>>>>>>> mkdir -p build/obj/ >>>>>>>>>> gcc -w -std=c99 -I../src -c ../src/finalize.c -o >>>>>>>>>> build/obj/finalize.o >>>>>>>>>> In file included from ../src/gc_pmark.h:45, >>>>>>>>>> from ../src/finalize.c:17: >>>>>>>>>> ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or >>>>>>>>>> ‘__attribute__’ before ‘GC_jmp_buf’ >>>>>>>>>> make[1]: *** [build/obj/finalize.o] Error 1 >>>>>>>>>> make[1]: Leaving directory >>>>>>>>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>>>>>>>> >>>>>>>>>> Line 2196 is the 3rd line of the statement: >>>>>>>>>> >>>>>>>>>> # if defined(NEED_FIND_LIMIT) || \ >>>>>>>>>> defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) >>>>>>>>>> JMP_BUF GC_jmp_buf; >>>>>>>>>> >>>>>>>>>> Any ideas how to fix? >>>>>>>>>> >>>>>>>>>> On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> >>>>>>>>>> wrote: >>>>>>>>>>> >>>>>>>>>>> Hans, I tried your test class on my system and it partially >>>>>>>>>>> compiled, >>>>>>>>>>> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh >>>>>>>>>>> no, >>>>>>>>>>> XMLVM needs more memory. Try running with -Xmx1G or more." >>>>>>>>>>> >>>>>>>>>>> Don't know if it matters, but did you put your source file into a >>>>>>>>>>> directory named 'test' to match the package? See the layout of my >>>>>>>>>>> files, and the content of the Makefile, at >>>>>>>>>>> http://unternet.net/xmlvm, >>>>>>>>>>> and the part that xmlvm was able to complete at >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >>>>>>>>>>> >>>>>>>>>>> On my (Debian stable) build system, /usr/local/bin/xmlvm is a >>>>>>>>>>> symlink >>>>>>>>>>> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >>>>>>>>>>> >>>>>>>>>>> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >>>>>>>>>>> <hka...@go...> wrote: >>>>>>>>>>>> >>>>>>>>>>>> Hello Arno, >>>>>>>>>>>> >>>>>>>>>>>> currently I am again struggeling with xmlvm. I gived the xmlvm >>>>>>>>>>>> now >>>>>>>>>>>> the >>>>>>>>>>>> second try and I am falling again... >>>>>>>>>>>> My goal: I just want to get C/C++ code from Java. >>>>>>>>>>>> >>>>>>>>>>>> I cannot even get a simple example running. >>>>>>>>>>>> 1. I checked out trunk. >>>>>>>>>>>> 2. I created a test class, a pretty, pretty simple one >>>>>>>>>>>> Here my test class: >>>>>>>>>>>> package test; >>>>>>>>>>>> >>>>>>>>>>>> public class HelloWorld { >>>>>>>>>>>> >>>>>>>>>>>> public static void main(String[] args) { >>>>>>>>>>>> System.out.println("hello world"); >>>>>>>>>>>> } >>>>>>>>>>>> >>>>>>>>>>>> } >>>>>>>>>>>> >>>>>>>>>>>> 3. I created a launch config >>>>>>>>>>>> Here my launch params: >>>>>>>>>>>> --in=${workspace_loc:xmlvm-test}/bin >>>>>>>>>>>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src >>>>>>>>>>>> --target=posix >>>>>>>>>>>> --app-name=xmlvm-test >>>>>>>>>>>> >>>>>>>>>>>> now I get: >>>>>>>>>>>> Exception in thread "main" java.lang.NullPointerException >>>>>>>>>>>> at >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> John Comeau<jc...@un...> http://jc.unternet.net/ >>>>>>>>>>> "A place for everything, and everything >>>>>>>>>>> all over the place" >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ------------------------------------------------------------------------------ >>>>>>>>> WhatsUp Gold - Download Free Network Management Software >>>>>>>>> The most intuitive, comprehensive, and cost-effective network >>>>>>>>> management toolset available today. Delivers lowest initial >>>>>>>>> acquisition cost and overall TCO of any competing solution. >>>>>>>>> http://p.sf.net/sfu/whatsupgold-sd >>>>>>>>> _______________________________________________ >>>>>>>>> xmlvm-users mailing list >>>>>>>>> xml...@li... >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> WhatsUp Gold - Download Free Network Management Software >>>>>>> The most intuitive, comprehensive, and cost-effective network >>>>>>> management toolset available today. Delivers lowest initial >>>>>>> acquisition cost and overall TCO of any competing solution. >>>>>>> http://p.sf.net/sfu/whatsupgold-sd >>>>>>> _______________________________________________ >>>>>>> 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" >>> >> >> >> > -- 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-29 06:08:37
|
OK, using --no-cache it built. Now I need to install the garbage collector before continuing. On Thu, Apr 28, 2011 at 11:05 PM, John Comeau <jc...@un...> wrote: > This is the same HelloWorld test that Hans posted yesterday, I'm still > trying to help with it. > > Currently rebuilding with --no-cache as requested. > > On Thu, Apr 28, 2011 at 11:00 PM, John Comeau <jc...@un...> wrote: >> On Thu, Apr 28, 2011 at 10:53 PM, Arno Puder <ar...@pu...> wrote: >>> >>> John: this is related to the new string handling, but without seeing the >>> program, I can't tell what is going wrong. In >>> XmlvmConstantStringElement.getLength() (which is the origin of the problem >>> according to the stack trace), can you print out all members of >>> XmlvmConstantStringElement? This will generate a lot of output, but just >>> before the exception is thrown, we should see which string constant is >>> causing the problem. >>> >>> Arno >>> >>> >>> On 4/28/11 10:44 PM, John Comeau wrote: >>>> >>>> Done. Exactly same result. >>>> >>>> On Thu, Apr 28, 2011 at 10:35 PM, Arno Puder<ar...@pu...> wrote: >>>>> >>>>> do an "ant clean" and remove all .cache directories. Then try again. >>>>> >>>>> Arno >>>>> >>>>> >>>>> On 4/28/11 10:34 PM, John Comeau wrote: >>>>>> >>>>>> Thanks, Arno. My bad, should have updated before posting. But now I get: >>>>>> >>>>>> jcomeau@intrepid:~/rentacoder/xmlvm$ make >>>>>> mkdir -p generated/posix/src >>>>>> cd src&& javac -d ../bin test/*.java >>>>>> java -Xmx1G -jar /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar \ >>>>>> --in=bin \ >>>>>> --out=generated/posix/src --target=posix \ >>>>>> --app-name=xmlvm-test >>>>>> Exception in thread "main" java.lang.reflect.InvocationTargetException >>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>>> at >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>>>> at >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>>>> at com.simontuffs.onejar.Boot.run(Boot.java:306) >>>>>> at com.simontuffs.onejar.Boot.main(Boot.java:159) >>>>>> Caused by: java.lang.NumberFormatException: null >>>>>> at java.lang.Integer.parseInt(Integer.java:417) >>>>>> at java.lang.Integer.parseInt(Integer.java:499) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) >>>>>> at >>>>>> org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:115) >>>>>> at >>>>>> org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at >>>>>> org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >>>>>> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) >>>>>> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) >>>>>> at org.xmlvm.Main.main(Main.java:53) >>>>>> ... 6 more >>>>>> >>>>>> Source tree is at http://unternet.net/xmlvm/ is current. >>>>>> >>>>>> On Thu, Apr 28, 2011 at 10:13 PM, Arno Puder<ar...@pu...> wrote: >>>>>>> >>>>>>> you don't seem to be using the latest version. We removed the manual >>>>>>> bundling of the Boehm GC and for the --target=posix we now expect a >>>>>>> local installation of the Boehm GC (the boehmgc.jar that is bundled >>>>>>> with >>>>>>> XMLVM is specifically for iOS). After a svn update, re-generate your >>>>>>> project and check the comments in the Makefile. >>>>>>> >>>>>>> Arno >>>>>>> >>>>>>> >>>>>>> On 4/28/11 10:10 PM, John Comeau wrote: >>>>>>>> >>>>>>>> Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm >>>>>>>> compiler finished; but the resulting C source has an error, see output >>>>>>>> of 'make' below. >>>>>>>> >>>>>>>> jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make >>>>>>>> make[1]: Entering directory >>>>>>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>>>>>> mkdir -p build/obj/ >>>>>>>> gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o >>>>>>>> In file included from ../src/gc_pmark.h:45, >>>>>>>> from ../src/finalize.c:17: >>>>>>>> ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or >>>>>>>> ‘__attribute__’ before ‘GC_jmp_buf’ >>>>>>>> make[1]: *** [build/obj/finalize.o] Error 1 >>>>>>>> make[1]: Leaving directory >>>>>>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>>>>>> >>>>>>>> Line 2196 is the 3rd line of the statement: >>>>>>>> >>>>>>>> # if defined(NEED_FIND_LIMIT) || \ >>>>>>>> defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) >>>>>>>> JMP_BUF GC_jmp_buf; >>>>>>>> >>>>>>>> Any ideas how to fix? >>>>>>>> >>>>>>>> On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Hans, I tried your test class on my system and it partially compiled, >>>>>>>>> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, >>>>>>>>> XMLVM needs more memory. Try running with -Xmx1G or more." >>>>>>>>> >>>>>>>>> Don't know if it matters, but did you put your source file into a >>>>>>>>> directory named 'test' to match the package? See the layout of my >>>>>>>>> files, and the content of the Makefile, at http://unternet.net/xmlvm, >>>>>>>>> and the part that xmlvm was able to complete at >>>>>>>>> >>>>>>>>> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >>>>>>>>> >>>>>>>>> On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink >>>>>>>>> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >>>>>>>>> >>>>>>>>> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >>>>>>>>> <hka...@go...> wrote: >>>>>>>>>> >>>>>>>>>> Hello Arno, >>>>>>>>>> >>>>>>>>>> currently I am again struggeling with xmlvm. I gived the xmlvm now >>>>>>>>>> the >>>>>>>>>> second try and I am falling again... >>>>>>>>>> My goal: I just want to get C/C++ code from Java. >>>>>>>>>> >>>>>>>>>> I cannot even get a simple example running. >>>>>>>>>> 1. I checked out trunk. >>>>>>>>>> 2. I created a test class, a pretty, pretty simple one >>>>>>>>>> Here my test class: >>>>>>>>>> package test; >>>>>>>>>> >>>>>>>>>> public class HelloWorld { >>>>>>>>>> >>>>>>>>>> public static void main(String[] args) { >>>>>>>>>> System.out.println("hello world"); >>>>>>>>>> } >>>>>>>>>> >>>>>>>>>> } >>>>>>>>>> >>>>>>>>>> 3. I created a launch config >>>>>>>>>> Here my launch params: >>>>>>>>>> --in=${workspace_loc:xmlvm-test}/bin >>>>>>>>>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src >>>>>>>>>> --target=posix >>>>>>>>>> --app-name=xmlvm-test >>>>>>>>>> >>>>>>>>>> now I get: >>>>>>>>>> Exception in thread "main" java.lang.NullPointerException >>>>>>>>>> at >>>>>>>>> >>>>>>>>> -- >>>>>>>>> John Comeau<jc...@un...> http://jc.unternet.net/ >>>>>>>>> "A place for everything, and everything >>>>>>>>> all over the place" >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> WhatsUp Gold - Download Free Network Management Software >>>>>>> The most intuitive, comprehensive, and cost-effective network >>>>>>> management toolset available today. Delivers lowest initial >>>>>>> acquisition cost and overall TCO of any competing solution. >>>>>>> http://p.sf.net/sfu/whatsupgold-sd >>>>>>> _______________________________________________ >>>>>>> xmlvm-users mailing list >>>>>>> xml...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> WhatsUp Gold - Download Free Network Management Software >>>>> The most intuitive, comprehensive, and cost-effective network >>>>> management toolset available today. Delivers lowest initial >>>>> acquisition cost and overall TCO of any competing solution. >>>>> http://p.sf.net/sfu/whatsupgold-sd >>>>> _______________________________________________ >>>>> 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" > -- 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-29 05:45:10
|
Done. Exactly same result. On Thu, Apr 28, 2011 at 10:35 PM, Arno Puder <ar...@pu...> wrote: > > do an "ant clean" and remove all .cache directories. Then try again. > > Arno > > > On 4/28/11 10:34 PM, John Comeau wrote: >> Thanks, Arno. My bad, should have updated before posting. But now I get: >> >> jcomeau@intrepid:~/rentacoder/xmlvm$ make >> mkdir -p generated/posix/src >> cd src&& javac -d ../bin test/*.java >> java -Xmx1G -jar /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar \ >> --in=bin \ >> --out=generated/posix/src --target=posix \ >> --app-name=xmlvm-test >> Exception in thread "main" java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at com.simontuffs.onejar.Boot.run(Boot.java:306) >> at com.simontuffs.onejar.Boot.main(Boot.java:159) >> Caused by: java.lang.NumberFormatException: null >> at java.lang.Integer.parseInt(Integer.java:417) >> at java.lang.Integer.parseInt(Integer.java:499) >> at org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) >> at org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:115) >> at org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) >> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) >> at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) >> at org.xmlvm.Main.main(Main.java:53) >> ... 6 more >> >> Source tree is at http://unternet.net/xmlvm/ is current. >> >> On Thu, Apr 28, 2011 at 10:13 PM, Arno Puder<ar...@pu...> wrote: >>> >>> you don't seem to be using the latest version. We removed the manual >>> bundling of the Boehm GC and for the --target=posix we now expect a >>> local installation of the Boehm GC (the boehmgc.jar that is bundled with >>> XMLVM is specifically for iOS). After a svn update, re-generate your >>> project and check the comments in the Makefile. >>> >>> Arno >>> >>> >>> On 4/28/11 10:10 PM, John Comeau wrote: >>>> Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm >>>> compiler finished; but the resulting C source has an error, see output >>>> of 'make' below. >>>> >>>> jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make >>>> make[1]: Entering directory >>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>> mkdir -p build/obj/ >>>> gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o >>>> In file included from ../src/gc_pmark.h:45, >>>> from ../src/finalize.c:17: >>>> ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or >>>> ‘__attribute__’ before ‘GC_jmp_buf’ >>>> make[1]: *** [build/obj/finalize.o] Error 1 >>>> make[1]: Leaving directory >>>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>>> >>>> Line 2196 is the 3rd line of the statement: >>>> >>>> # if defined(NEED_FIND_LIMIT) || \ >>>> defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) >>>> JMP_BUF GC_jmp_buf; >>>> >>>> Any ideas how to fix? >>>> >>>> On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> wrote: >>>>> Hans, I tried your test class on my system and it partially compiled, >>>>> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, >>>>> XMLVM needs more memory. Try running with -Xmx1G or more." >>>>> >>>>> Don't know if it matters, but did you put your source file into a >>>>> directory named 'test' to match the package? See the layout of my >>>>> files, and the content of the Makefile, at http://unternet.net/xmlvm, >>>>> and the part that xmlvm was able to complete at >>>>> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >>>>> >>>>> On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink >>>>> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >>>>> >>>>> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >>>>> <hka...@go...> wrote: >>>>>> Hello Arno, >>>>>> >>>>>> currently I am again struggeling with xmlvm. I gived the xmlvm now the >>>>>> second try and I am falling again... >>>>>> My goal: I just want to get C/C++ code from Java. >>>>>> >>>>>> I cannot even get a simple example running. >>>>>> 1. I checked out trunk. >>>>>> 2. I created a test class, a pretty, pretty simple one >>>>>> Here my test class: >>>>>> package test; >>>>>> >>>>>> public class HelloWorld { >>>>>> >>>>>> public static void main(String[] args) { >>>>>> System.out.println("hello world"); >>>>>> } >>>>>> >>>>>> } >>>>>> >>>>>> 3. I created a launch config >>>>>> Here my launch params: >>>>>> --in=${workspace_loc:xmlvm-test}/bin >>>>>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix >>>>>> --app-name=xmlvm-test >>>>>> >>>>>> now I get: >>>>>> Exception in thread "main" java.lang.NullPointerException >>>>>> at >>>>> -- >>>>> John Comeau<jc...@un...> http://jc.unternet.net/ >>>>> "A place for everything, and everything >>>>> all over the place" >>>>> >>>> >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> WhatsUp Gold - Download Free Network Management Software >>> The most intuitive, comprehensive, and cost-effective network >>> management toolset available today. Delivers lowest initial >>> acquisition cost and overall TCO of any competing solution. >>> http://p.sf.net/sfu/whatsupgold-sd >>> _______________________________________________ >>> xmlvm-users mailing list >>> xml...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >>> >> >> >> > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > 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: Arno P. <ar...@pu...> - 2011-04-29 05:36:31
|
do an "ant clean" and remove all .cache directories. Then try again. Arno On 4/28/11 10:34 PM, John Comeau wrote: > Thanks, Arno. My bad, should have updated before posting. But now I get: > > jcomeau@intrepid:~/rentacoder/xmlvm$ make > mkdir -p generated/posix/src > cd src&& javac -d ../bin test/*.java > java -Xmx1G -jar /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar \ > --in=bin \ > --out=generated/posix/src --target=posix \ > --app-name=xmlvm-test > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.simontuffs.onejar.Boot.run(Boot.java:306) > at com.simontuffs.onejar.Boot.main(Boot.java:159) > Caused by: java.lang.NumberFormatException: null > at java.lang.Integer.parseInt(Integer.java:417) > at java.lang.Integer.parseInt(Integer.java:499) > at org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) > at org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:115) > at org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > ... 6 more > > Source tree is at http://unternet.net/xmlvm/ is current. > > On Thu, Apr 28, 2011 at 10:13 PM, Arno Puder<ar...@pu...> wrote: >> >> you don't seem to be using the latest version. We removed the manual >> bundling of the Boehm GC and for the --target=posix we now expect a >> local installation of the Boehm GC (the boehmgc.jar that is bundled with >> XMLVM is specifically for iOS). After a svn update, re-generate your >> project and check the comments in the Makefile. >> >> Arno >> >> >> On 4/28/11 10:10 PM, John Comeau wrote: >>> Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm >>> compiler finished; but the resulting C source has an error, see output >>> of 'make' below. >>> >>> jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make >>> make[1]: Entering directory >>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>> mkdir -p build/obj/ >>> gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o >>> In file included from ../src/gc_pmark.h:45, >>> from ../src/finalize.c:17: >>> ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or >>> ‘__attribute__’ before ‘GC_jmp_buf’ >>> make[1]: *** [build/obj/finalize.o] Error 1 >>> make[1]: Leaving directory >>> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >>> >>> Line 2196 is the 3rd line of the statement: >>> >>> # if defined(NEED_FIND_LIMIT) || \ >>> defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) >>> JMP_BUF GC_jmp_buf; >>> >>> Any ideas how to fix? >>> >>> On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> wrote: >>>> Hans, I tried your test class on my system and it partially compiled, >>>> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, >>>> XMLVM needs more memory. Try running with -Xmx1G or more." >>>> >>>> Don't know if it matters, but did you put your source file into a >>>> directory named 'test' to match the package? See the layout of my >>>> files, and the content of the Makefile, at http://unternet.net/xmlvm, >>>> and the part that xmlvm was able to complete at >>>> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >>>> >>>> On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink >>>> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >>>> >>>> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >>>> <hka...@go...> wrote: >>>>> Hello Arno, >>>>> >>>>> currently I am again struggeling with xmlvm. I gived the xmlvm now the >>>>> second try and I am falling again... >>>>> My goal: I just want to get C/C++ code from Java. >>>>> >>>>> I cannot even get a simple example running. >>>>> 1. I checked out trunk. >>>>> 2. I created a test class, a pretty, pretty simple one >>>>> Here my test class: >>>>> package test; >>>>> >>>>> public class HelloWorld { >>>>> >>>>> public static void main(String[] args) { >>>>> System.out.println("hello world"); >>>>> } >>>>> >>>>> } >>>>> >>>>> 3. I created a launch config >>>>> Here my launch params: >>>>> --in=${workspace_loc:xmlvm-test}/bin >>>>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix >>>>> --app-name=xmlvm-test >>>>> >>>>> now I get: >>>>> Exception in thread "main" java.lang.NullPointerException >>>>> at >>>> -- >>>> John Comeau<jc...@un...> http://jc.unternet.net/ >>>> "A place for everything, and everything >>>> all over the place" >>>> >>> >>> >>> >> >> ------------------------------------------------------------------------------ >> WhatsUp Gold - Download Free Network Management Software >> The most intuitive, comprehensive, and cost-effective network >> management toolset available today. Delivers lowest initial >> acquisition cost and overall TCO of any competing solution. >> http://p.sf.net/sfu/whatsupgold-sd >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> > > > |
From: John C. <jc...@un...> - 2011-04-29 05:34:58
|
Thanks, Arno. My bad, should have updated before posting. But now I get: jcomeau@intrepid:~/rentacoder/xmlvm$ make mkdir -p generated/posix/src cd src && javac -d ../bin test/*.java java -Xmx1G -jar /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar \ --in=bin \ --out=generated/posix/src --target=posix \ --app-name=xmlvm-test Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:417) at java.lang.Integer.parseInt(Integer.java:499) at org.xmlvm.proc.XmlvmResource$XmlvmConstantStringElement.getLength(XmlvmResource.java:160) at org.xmlvm.proc.out.OptimizationOutputProcess.generateStringConstantPool(OptimizationOutputProcess.java:115) at org.xmlvm.proc.out.OptimizationOutputProcess.processPhase2(OptimizationOutputProcess.java:88) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) ... 6 more Source tree is at http://unternet.net/xmlvm/ is current. On Thu, Apr 28, 2011 at 10:13 PM, Arno Puder <ar...@pu...> wrote: > > you don't seem to be using the latest version. We removed the manual > bundling of the Boehm GC and for the --target=posix we now expect a > local installation of the Boehm GC (the boehmgc.jar that is bundled with > XMLVM is specifically for iOS). After a svn update, re-generate your > project and check the comments in the Makefile. > > Arno > > > On 4/28/11 10:10 PM, John Comeau wrote: >> Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm >> compiler finished; but the resulting C source has an error, see output >> of 'make' below. >> >> jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make >> make[1]: Entering directory >> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >> mkdir -p build/obj/ >> gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o >> In file included from ../src/gc_pmark.h:45, >> from ../src/finalize.c:17: >> ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or >> ‘__attribute__’ before ‘GC_jmp_buf’ >> make[1]: *** [build/obj/finalize.o] Error 1 >> make[1]: Leaving directory >> `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' >> >> Line 2196 is the 3rd line of the statement: >> >> # if defined(NEED_FIND_LIMIT) || \ >> defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) >> JMP_BUF GC_jmp_buf; >> >> Any ideas how to fix? >> >> On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> wrote: >>> Hans, I tried your test class on my system and it partially compiled, >>> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, >>> XMLVM needs more memory. Try running with -Xmx1G or more." >>> >>> Don't know if it matters, but did you put your source file into a >>> directory named 'test' to match the package? See the layout of my >>> files, and the content of the Makefile, at http://unternet.net/xmlvm, >>> and the part that xmlvm was able to complete at >>> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >>> >>> On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink >>> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >>> >>> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >>> <hka...@go...> wrote: >>>> Hello Arno, >>>> >>>> currently I am again struggeling with xmlvm. I gived the xmlvm now the >>>> second try and I am falling again... >>>> My goal: I just want to get C/C++ code from Java. >>>> >>>> I cannot even get a simple example running. >>>> 1. I checked out trunk. >>>> 2. I created a test class, a pretty, pretty simple one >>>> Here my test class: >>>> package test; >>>> >>>> public class HelloWorld { >>>> >>>> public static void main(String[] args) { >>>> System.out.println("hello world"); >>>> } >>>> >>>> } >>>> >>>> 3. I created a launch config >>>> Here my launch params: >>>> --in=${workspace_loc:xmlvm-test}/bin >>>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix >>>> --app-name=xmlvm-test >>>> >>>> now I get: >>>> Exception in thread "main" java.lang.NullPointerException >>>> at >>> -- >>> John Comeau<jc...@un...> http://jc.unternet.net/ >>> "A place for everything, and everything >>> all over the place" >>> >> >> >> > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > 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: Arno P. <ar...@pu...> - 2011-04-29 05:14:36
|
you don't seem to be using the latest version. We removed the manual bundling of the Boehm GC and for the --target=posix we now expect a local installation of the Boehm GC (the boehmgc.jar that is bundled with XMLVM is specifically for iOS). After a svn update, re-generate your project and check the comments in the Makefile. Arno On 4/28/11 10:10 PM, John Comeau wrote: > Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm > compiler finished; but the resulting C source has an error, see output > of 'make' below. > > jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make > make[1]: Entering directory > `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' > mkdir -p build/obj/ > gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o > In file included from ../src/gc_pmark.h:45, > from ../src/finalize.c:17: > ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or > ‘__attribute__’ before ‘GC_jmp_buf’ > make[1]: *** [build/obj/finalize.o] Error 1 > make[1]: Leaving directory > `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' > > Line 2196 is the 3rd line of the statement: > > # if defined(NEED_FIND_LIMIT) || \ > defined(USE_PROC_FOR_LIBRARIES)&& defined(THREADS) > JMP_BUF GC_jmp_buf; > > Any ideas how to fix? > > On Thu, Apr 28, 2011 at 1:36 PM, John Comeau<jc...@un...> wrote: >> Hans, I tried your test class on my system and it partially compiled, >> but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, >> XMLVM needs more memory. Try running with -Xmx1G or more." >> >> Don't know if it matters, but did you put your source file into a >> directory named 'test' to match the package? See the layout of my >> files, and the content of the Makefile, at http://unternet.net/xmlvm, >> and the part that xmlvm was able to complete at >> http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ >> >> On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink >> to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar >> >> On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... >> <hka...@go...> wrote: >>> Hello Arno, >>> >>> currently I am again struggeling with xmlvm. I gived the xmlvm now the >>> second try and I am falling again... >>> My goal: I just want to get C/C++ code from Java. >>> >>> I cannot even get a simple example running. >>> 1. I checked out trunk. >>> 2. I created a test class, a pretty, pretty simple one >>> Here my test class: >>> package test; >>> >>> public class HelloWorld { >>> >>> public static void main(String[] args) { >>> System.out.println("hello world"); >>> } >>> >>> } >>> >>> 3. I created a launch config >>> Here my launch params: >>> --in=${workspace_loc:xmlvm-test}/bin >>> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix >>> --app-name=xmlvm-test >>> >>> now I get: >>> Exception in thread "main" java.lang.NullPointerException >>> at >> -- >> 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-29 05:10:37
|
Fixed my Makefile to invoke 'java' with '-Xmx1G' and the xmlvm compiler finished; but the resulting C source has an error, see output of 'make' below. jcomeau@intrepid:~/rentacoder/xmlvm/generated/posix/src/dist$ make make[1]: Entering directory `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' mkdir -p build/obj/ gcc -w -std=c99 -I../src -c ../src/finalize.c -o build/obj/finalize.o In file included from ../src/gc_pmark.h:45, from ../src/finalize.c:17: ../src/gc_priv.h:2196: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GC_jmp_buf’ make[1]: *** [build/obj/finalize.o] Error 1 make[1]: Leaving directory `/home/jcomeau/rentacoder/xmlvm/generated/posix/src/dist' Line 2196 is the 3rd line of the statement: # if defined(NEED_FIND_LIMIT) || \ defined(USE_PROC_FOR_LIBRARIES) && defined(THREADS) JMP_BUF GC_jmp_buf; Any ideas how to fix? On Thu, Apr 28, 2011 at 1:36 PM, John Comeau <jc...@un...> wrote: > Hans, I tried your test class on my system and it partially compiled, > but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, > XMLVM needs more memory. Try running with -Xmx1G or more." > > Don't know if it matters, but did you put your source file into a > directory named 'test' to match the package? See the layout of my > files, and the content of the Makefile, at http://unternet.net/xmlvm, > and the part that xmlvm was able to complete at > http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ > > On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink > to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar > > On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... > <hka...@go...> wrote: >> Hello Arno, >> >> currently I am again struggeling with xmlvm. I gived the xmlvm now the >> second try and I am falling again... >> My goal: I just want to get C/C++ code from Java. >> >> I cannot even get a simple example running. >> 1. I checked out trunk. >> 2. I created a test class, a pretty, pretty simple one >> Here my test class: >> package test; >> >> public class HelloWorld { >> >> public static void main(String[] args) { >> System.out.println("hello world"); >> } >> >> } >> >> 3. I created a launch config >> Here my launch params: >> --in=${workspace_loc:xmlvm-test}/bin >> --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix >> --app-name=xmlvm-test >> >> now I get: >> Exception in thread "main" java.lang.NullPointerException >> at > -- > 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-28 23:28:59
|
Guys, currently XMLVM has two targets: 'c' and 'posix'. The difference is that --target=c only cross-compiles a single file while --target=posix pulls in all dependent classes into the cross-compilation process. Some of you ran into problems with --target=c. The main reason is that we are doing quite a few optimizations with the C backend that require a 'global view' of all classes of an application (e.g., optimize the size of the vtable). This can't be done for --target=c. Furthermore, it will be next to impossible to link generated .c files that were cross-compiled one-by-one with --target=c. I am considering to remove --target=c for that reason unless someone has a compelling reason against this. Arno |
From: Sascha H. <sa...@gm...> - 2011-04-28 21:13:24
|
Hi Hans, On Thu, Apr 28, 2011 at 10:26 AM, hka...@go... < hka...@go...> wrote: > Hello Arno, > > currently I am again struggeling with xmlvm. I gived the xmlvm now the > second try and I am falling again... > My goal: I just want to get C/C++ code from Java. > > I cannot even get a simple example running. > 1. I checked out trunk. > 2. I created a test class, a pretty, pretty simple one > Here my test class: > package test; > > public class HelloWorld { > > public static void main(String[] args) { > System.out.println("hello world"); > } > > } > > 3. I created a launch config > Here my launch params: > --in=${workspace_loc:xmlvm-test}/bin > --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix > --app-name=xmlvm-test > > now I get: > Exception in thread "main" java.lang.NullPointerException > at > org.xmlvm.proc.CompilationBundle.addResources(CompilationBundle.java:44) > at > > org.xmlvm.proc.out.RecursiveResourceLoadingProcess.processPhase1(RecursiveResourceLoadingProcess.java:63) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:209) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at > > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:157) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:53) > I am not sure why this is happening. The error basically tells me that a loaded resources is null. I could get rid of the error message, but I think there is another issue here. Can you pleaserun xmlvm using "--debug=all" and send me the complete log? There might be a pointer earlier in the log that might give more insight into what is going wrong here. This simple example should certainly work. > > 4. okay try the c target > here my launch params > --in=${workspace_loc:xmlvm-test}/bin > --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=c > --app-name=xmlvm-test > > 5. now I get > [04/28/11 10:23:51.892] ERROR: Vtable for java.io.PrintStream not found! I was able to reproduce this problem and we will take a look at it. Thanks for finding! > > Can you imaging, that is really frustrating trying something and the > simpliest things aren't running? > > Please provide simple examples AND a running launch config. I think this > would do a easy kick start for users like me. > And I can tell you I have mulitple years of experience in programming. > But I have not the time to struggle around to get the simpliest things - > from user view point - running. Currently I am evaluating, if xmlvm > could be a possible "invest" for my team. But in that project state of > xmlvm... > > Maybe it is a missing documentation, maybe it is the missing simple > example or maybe both. But I am sure, if you just invest 30 min of your > current effort in the place to get new users started, new users wouldn't > turn around and giving up so fast. > > So hopefully the developers of this list would here my crying and try to > fix the issues. > And maybe you should freeze a running version by tagging/branching or > providing a zip/tag.gz for the users. > > best regards, > Hans > > > > On 04/07/2011 09:32 PM, Arno Puder wrote: > > 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. > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |
From: John C. <jc...@un...> - 2011-04-28 20:36:17
|
Hans, I tried your test class on my system and it partially compiled, but then I got the error "[04/28/11 13:05:29.608] ERROR: Oh no, XMLVM needs more memory. Try running with -Xmx1G or more." Don't know if it matters, but did you put your source file into a directory named 'test' to match the package? See the layout of my files, and the content of the Makefile, at http://unternet.net/xmlvm, and the part that xmlvm was able to complete at http://unternet.net/xmlvm/.cache/pcache/org.xmlvm.proc.out.DEXmlvmOutputProcess/ On my (Debian stable) build system, /usr/local/bin/xmlvm is a symlink to /usr/src/xmlvm-new/trunk/xmlvm/dist/xmlvm.jar On Thu, Apr 28, 2011 at 1:26 AM, hka...@go... <hka...@go...> wrote: > Hello Arno, > > currently I am again struggeling with xmlvm. I gived the xmlvm now the > second try and I am falling again... > My goal: I just want to get C/C++ code from Java. > > I cannot even get a simple example running. > 1. I checked out trunk. > 2. I created a test class, a pretty, pretty simple one > Here my test class: > package test; > > public class HelloWorld { > > public static void main(String[] args) { > System.out.println("hello world"); > } > > } > > 3. I created a launch config > Here my launch params: > --in=${workspace_loc:xmlvm-test}/bin > --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix > --app-name=xmlvm-test > > now I get: > Exception in thread "main" java.lang.NullPointerException > at -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: <hka...@go...> - 2011-04-28 08:27:02
|
Hello Arno, currently I am again struggeling with xmlvm. I gived the xmlvm now the second try and I am falling again... My goal: I just want to get C/C++ code from Java. I cannot even get a simple example running. 1. I checked out trunk. 2. I created a test class, a pretty, pretty simple one Here my test class: package test; public class HelloWorld { public static void main(String[] args) { System.out.println("hello world"); } } 3. I created a launch config Here my launch params: --in=${workspace_loc:xmlvm-test}/bin --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=posix --app-name=xmlvm-test now I get: Exception in thread "main" java.lang.NullPointerException at org.xmlvm.proc.CompilationBundle.addResources(CompilationBundle.java:44) at org.xmlvm.proc.out.RecursiveResourceLoadingProcess.processPhase1(RecursiveResourceLoadingProcess.java:63) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:209) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:157) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) at org.xmlvm.Main.main(Main.java:53) 4. okay try the c target here my launch params --in=${workspace_loc:xmlvm-test}/bin --out=${workspace_loc:xmlvm-test-cpp}/generated/posix/src --target=c --app-name=xmlvm-test 5. now I get [04/28/11 10:23:51.892] ERROR: Vtable for java.io.PrintStream not found! Can you imaging, that is really frustrating trying something and the simpliest things aren't running? Please provide simple examples AND a running launch config. I think this would do a easy kick start for users like me. And I can tell you I have mulitple years of experience in programming. But I have not the time to struggle around to get the simpliest things - from user view point - running. Currently I am evaluating, if xmlvm could be a possible "invest" for my team. But in that project state of xmlvm... Maybe it is a missing documentation, maybe it is the missing simple example or maybe both. But I am sure, if you just invest 30 min of your current effort in the place to get new users started, new users wouldn't turn around and giving up so fast. So hopefully the developers of this list would here my crying and try to fix the issues. And maybe you should freeze a running version by tagging/branching or providing a zip/tag.gz for the users. best regards, Hans On 04/07/2011 09:32 PM, Arno Puder wrote: > 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. |
From: Arno P. <ar...@pu...> - 2011-04-22 16:54:22
|
PS: when configuring the Boehm GC for your platform, you should use the following parameters: ./configure --enable-threads=posix --enable-thread-local-alloc --enable-parallel-mark Arno On 4/22/11 9:40 AM, Thomas Trocha wrote: > Hi there, I watch xmlvm for quite some time now and first of all I have > to say you are doing an incredible job! > > Lately I just wanted to test the posix-target to compile java to > native-code in linux and somehow got stuck with > garbage-collector-problems. There were some hints about removing the > boehmgc-files and to use -DXMLVM_NO_GC. (Where would I have to use this > -DXML...?) > > Nevertheless as you mentioned that the boehmgc is a more or less a > special one for iOS I tried to get it donewith my limited c/c > ++-knowledge. > And I got it work. For now only with boehmgc linked dynamically... So > for people interested have a look here: > > http://thomas.trocha.com/wp/?page_id=684 > > Maybe there is already an easyier fix and maybe it would have been > better to ask before starting :D...but hey that's the way to learn the > stuff, right? :D > > yours, dertom > > > > > ------------------------------------------------------------------------------ > Fulfilling the Lean Software Promise > Lean software platforms are now widely adopted and the benefits have been > demonstrated beyond question. Learn why your peers are replacing JEE > containers with lightweight application servers - and what you can gain > from the move. http://p.sf.net/sfu/vmware-sfemails > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |
From: Arno P. <ar...@pu...> - 2011-04-22 16:50:31
|
On 4/22/11 9:40 AM, Thomas Trocha wrote: > Hi there, I watch xmlvm for quite some time now and first of all I have > to say you are doing an incredible job! thanks! :) > Lately I just wanted to test the posix-target to compile java to > native-code in linux and somehow got stuck with > garbage-collector-problems. There were some hints about removing the > boehmgc-files and to use -DXMLVM_NO_GC. (Where would I have to use this > -DXML...?) Yes. > Nevertheless as you mentioned that the boehmgc is a more or less a > special one for iOS I tried to get it donewith my limited c/c > ++-knowledge. > And I got it work. For now only with boehmgc linked dynamically... So > for people interested have a look here: > > http://thomas.trocha.com/wp/?page_id=684 > > Maybe there is already an easyier fix and maybe it would have been > better to ask before starting :D...but hey that's the way to learn the > stuff, right? :D Nice blog. Here is what needs to be done if you want to integrate this with XMLVM: boehmgc.jar is added to the project in AugmentedCOutputProcess. Both IPhoneCOutputProcess and PosixOutputProcess use that as their input. What needs to be done is that boehmgc.jar is added in IPhoneCOutputProcess and not in AugmentedCOutputProcess. Additionally xmlvm/var/posix/Makefile should be changed to add a -lgc to the linker parameters (the Makefile is only used for the Posix target). Interested in doing this and submitting a patch? ;) Arno |
From: Thomas T. <tho...@go...> - 2011-04-22 16:40:19
|
Hi there, I watch xmlvm for quite some time now and first of all I have to say you are doing an incredible job! Lately I just wanted to test the posix-target to compile java to native-code in linux and somehow got stuck with garbage-collector-problems. There were some hints about removing the boehmgc-files and to use -DXMLVM_NO_GC. (Where would I have to use this -DXML...?) Nevertheless as you mentioned that the boehmgc is a more or less a special one for iOS I tried to get it donewith my limited c/c ++-knowledge. And I got it work. For now only with boehmgc linked dynamically... So for people interested have a look here: http://thomas.trocha.com/wp/?page_id=684 Maybe there is already an easyier fix and maybe it would have been better to ask before starting :D...but hey that's the way to learn the stuff, right? :D yours, dertom |
From: John C. <jc...@un...> - 2011-04-18 17:46:13
|
That type of error indicates that support for that API is not yet in XMLVM. This is a cooperative effort, and those of us coders who would like XMLVM to succeed will need to code some of these files ourselves. To see what is currently supported, look in xmlvm/src/xmlvm2objc/compat-lib/objc. For the one you mentioned, though: I'm not familiar with org.xml's version, but you might be able to extend java.lang.String yourself for the added functionality you need. On Mon, Apr 18, 2011 at 9:53 AM, cpsingh <cp...@ak...> wrote: > Hi Guys > > I am still getting the same error. Can u please help me out I have followed > and build all the things after clearing it using ant clean I am also > getting so many warnings during compilation. But the main thing is that the > warning is itself in the library like org_xml_java_lang_String etc. So can > you please guide me how to resolve that. > > > Regards > CP Singh > ----- Original Message ----- From: "John Comeau" <jc...@un...> > To: "cpsingh" <cp...@ak...> > Cc: <xml...@li...> > Sent: Saturday, April 16, 2011 22:54 > Subject: Re: [xmlvm-users] android.text.method > > >> 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" >> > > -- John Comeau <jc...@un...> http://jc.unternet.net/ "A place for everything, and everything all over the place" |
From: cpsingh <cp...@ak...> - 2011-04-18 16:53:28
|
Hi Guys I am still getting the same error. Can u please help me out I have followed and build all the things after clearing it using ant clean I am also getting so many warnings during compilation. But the main thing is that the warning is itself in the library like org_xml_java_lang_String etc. So can you please guide me how to resolve that. Regards CP Singh ----- Original Message ----- From: "John Comeau" <jc...@un...> To: "cpsingh" <cp...@ak...> Cc: <xml...@li...> Sent: Saturday, April 16, 2011 22:54 Subject: Re: [xmlvm-users] android.text.method > 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: Shekar M. <sh...@mo...> - 2011-04-18 16:46:44
|
Arno, Thanks for your reply. I am getting a compile error on the "getDouble___int" method invocation. The error says: "Incompatible types in assignment" I am not an Objective-C expert but I wonder if a method is missing (or if a signature is not found), the compiler assumes a return value of "int" and thus raises the aforementioned error. So, it appears that I will have to fill in details in java_sql_ResultSet.[hm] with appropriate signatures and implementation. Please confirm. Shekar On 4/18/11 11:51 AM, Arno Puder wrote: > 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: Arno P. <ar...@pu...> - 2011-04-18 15:53:25
|
You can add functionality in xmlvm/src/android2iphone. Once you have something working, please upload a diff to our review system (details at XMLVM.org/contribute) Arno On Apr 18, 2011, at 8:27 AM, Shekar Mantha <sh...@mo...> wrote: > 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 >> > > ------------------------------------------------------------------------------ > 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 |