From: Daniel B. <db...@gm...> - 2009-07-24 07:25:16
|
Support Requests item #2826246, was opened at 2009-07-24 00:15 Message generated for change (Tracker Item Submitted) made by rcdabo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=973063&aid=2826246&group_id=200328 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: Daniel Branco (rcdabo) Assigned to: Nobody/Anonymous (nobody) Summary: Problem compiling with java -jar xmlvm.jar Initial Comment: Hello, I am new using XmlVM, I must say that is an interesting and flexible project which I'm attracted to. Anyway, I'm confuse about how to use it. I downloaded Java 6 update 14, Eclipse JEE Galileo, Subeclipse, then connect to svn repository give by you and download the whole repository, last version of Apache ant command. Finally I "ant" the repository and get the dist directory as the documentation says, but after this some interesting things happened. When I run "java -jar xmlvm.jar" an error display "Error: Need at least one --in argument" Then in order to test the "in", "out" and "target" options. I create an environment variable "%xmlvm%=java -jar xmlvm.jar" simulating an alias in unix. Then I just made a class in Eclipse adding reference to the xmlvm JARs build it and then launching the following (the class contain the same code to iHelloWorld example): %xmlvm% --in=holaMundo.class --out="C:/" and got: [07/23/09 23:53:57.906] DEBUG: Instantiated: org.xmlvm.proc.in. ClassInputProcess [07/23/09 23:53:57.906] DEBUG: Instantiated: org.xmlvm.proc.in.ClassInputProcess for "holaMundo.class" [07/23/09 23:53:57.906] ERROR: Could not create OutputProcess for target 'XMLVM'. Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.simontuffs.onejar.Boot.run(Boot.java:306) at com.simontuffs.onejar.Boot.main(Boot.java:159) Caused by: java.lang.NullPointerException at org.xmlvm.proc.XmlvmProcessor.filterNotYetProcessedProcessed(XmlvmProcessor.java:196) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:144) at org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:139) at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:101) at org.xmlvm.proc.NewMain.main(NewMain.java:55) ... 6 more Please Could you tell me what is wrong with steps. PS.: It is intented to build a plugin for Eclipse,isn't it? In that case I would like to learn and collaborate with the project, if it is possible and you allow it, which I think that deserve a great help as many people could take benefit from it. |
From: Sascha H. <sa...@gm...> - 2009-07-24 11:45:47
|
Hi Daniel, first of all thank for reposting to the mailing list. I now closed the forums to avoid further confusion. To your problem: This is actually not your problem, you've done everything absolutely right. I could go into explaining you that we are currently rebuilding some of the XMLVM infrastructure and the new one doesn't support XMLVM output yet, but that doesn't help you. As you are currently building without any other options, XMLVM tries to convert your class file into XMLVM (XML format). However, the output module for this is not yet converted to this new infrastructure. However, this shouldn't be a big problem and I will do this on the weekend and will let you know. In the meantime, you can try to specify a concrete output. For example try adding "--objc", "--js", "--python" or "--cpp". These should work and produce output. Let me know if this works or doesn't. // Sascha On Fri, Jul 24, 2009 at 9:24 AM, Daniel Branco <db...@gm...> wrote: > Support Requests item #2826246, was opened at 2009-07-24 00:15 > Message generated for change (Tracker Item Submitted) made by rcdabo > You can respond by visiting: > > https://sourceforge.net/tracker/?func=detail&atid=973063&aid=2826246&group_id=200328 > > Please note that this message will contain a full copy of the comment > thread, > including the initial issue submission, for this request, > not just the latest update. > Category: None > Group: None > Status: Open > Priority: 5 > Private: No > Submitted By: Daniel Branco (rcdabo) > Assigned to: Nobody/Anonymous (nobody) > Summary: Problem compiling with java -jar xmlvm.jar > > Initial Comment: > Hello, > > I am new using XmlVM, I must say that is an interesting and flexible > project which I'm attracted to. > > Anyway, I'm confuse about how to use it. I downloaded Java 6 update 14, > Eclipse JEE Galileo, Subeclipse, then connect to svn repository give by you > and download the whole repository, last version of Apache ant command. > Finally I "ant" the repository and get the dist directory as the > documentation says, but after this some interesting things happened. When I > run "java -jar xmlvm.jar" an error display "Error: Need at least one --in > argument" > > Then in order to test the "in", "out" and "target" options. I create an > environment variable "%xmlvm%=java -jar xmlvm.jar" simulating an alias in > unix. Then I just made a class in Eclipse adding reference to the xmlvm JARs > build it and then launching the following (the class contain the same code > to iHelloWorld example): > > %xmlvm% --in=holaMundo.class --out="C:/" > > and got: > > [07/23/09 23:53:57.906] DEBUG: Instantiated: org.xmlvm.proc.in. > ClassInputProcess > [07/23/09 23:53:57.906] DEBUG: Instantiated: > org.xmlvm.proc.in.ClassInputProcess for "holaMundo.class" > [07/23/09 23:53:57.906] ERROR: Could not create OutputProcess for target > 'XMLVM'. > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at com.simontuffs.onejar.Boot.run(Boot.java:306) > at com.simontuffs.onejar.Boot.main(Boot.java:159) > Caused by: java.lang.NullPointerException > at > org.xmlvm.proc.XmlvmProcessor.filterNotYetProcessedProcessed(XmlvmProcessor.java:196) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:144) > at > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:139) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:101) > at org.xmlvm.proc.NewMain.main(NewMain.java:55) > ... 6 more > > Please Could you tell me what is wrong with steps. > > PS.: It is intented to build a plugin for Eclipse,isn't it? In that case I > would like to learn and collaborate with the project, if it is possible and > you allow it, which I think that deserve a great help as many people could > take benefit from it. > > > ------------------------------------------------------------------------------ > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Arno P. <ar...@pu...> - 2009-07-24 14:44:53
|
a little clarification to Sascha's message: > In the meantime, you can try to specify a concrete output. For example > try adding "--objc", "--js", "--python" or "--cpp". These should work > and produce output. Let me know if this works or doesn't. You should do --target=objc, --target=js, etc. What Sascha has written is the old-style command line argument that we are trying to get away from. Arno |
From: Sascha H. <sa...@gm...> - 2009-07-24 15:35:30
|
Oh yes, thanks Arno. I was looking at the wrong file. I added a Deprecation to the old arguments file now :) // Sascha On Fri, Jul 24, 2009 at 4:24 PM, Arno Puder <ar...@pu...> wrote: > > a little clarification to Sascha's message: > > In the meantime, you can try to specify a concrete output. For example try >> adding "--objc", "--js", "--python" or "--cpp". These should work and >> produce output. Let me know if this works or doesn't. >> > > You should do --target=objc, --target=js, etc. What Sascha has written is > the old-style command line argument that we are trying to get away from. > > Arno > > |
From: Daniel B. <db...@gm...> - 2009-07-24 18:34:21
|
Thanks guys, was funny but I imagine to use "--target" thanks to the help that xmlvm command line display :) Now thanks to your big help gave, I will try to make a helloWorld which will hit the walls depending on the x and y origin, just to test your application (the java-based iphone emulator). Changing the subject, can anyone explain me how to use the code, generated by the xmlvm, in the iphone when I compiled the class with the following: %xmlvm% --in=holaMundo.class --target=iphone --iphone-app=holaMundo --out="./salida/" take into account that %xmlvm% is equal to "java -jar xmlvm.jar". My goal is to pass the compile code to a friend and he test it in his iphone (I don't have Iphone or Itouch in the meanwhile) Can I use the code in a simple ipod? Of course without the wireless connection and touchscreen functions. I noticed that the project is not document and making use of the javadoc functionality. Sorry for being annoying, but will you document it?, should be a great help. *HINT:* you should include the images of the Iphone into one of the JARs, at the beggining I was expecting to run the helloWorld and see a pop-up screen with the result instead of a displaying error. *PS.:* excuse my English, I'm improving it. *PS.:* I will try to make a plugin to eclipse in order to use your project. (Just to learn how to make a plugin and who knows if that helps the users) |
From: Sascha H. <sa...@gm...> - 2009-07-24 21:14:13
|
Please see my comments inline... On Fri, Jul 24, 2009 at 6:34 PM, Daniel Branco <db...@gm...> wrote: ... > > Changing the subject, can anyone explain me how to use the code, generated > by the xmlvm, in the iphone when I compiled the class with the following: > > %xmlvm% --in=holaMundo.class --target=iphone --iphone-app=holaMundo > --out="./salida/" > > take into account that %xmlvm% is equal to "java -jar xmlvm.jar". You basically have two options here, but bare in mind that you need to have OSX 10.5 in order to compile the generated Objective-C code to an iPhone/iPod application. This command line should generate you a Makefile along with the compiled code. This Makefile can be used on OSX 10.5 to compile the application and to launch it in Apples iPhone emulator. At least with the iPhone SDK 2.X this works. I've heard Arno saying that they changed something in 3.0 so this method is currently not working with the 3.0 SDK. You other option is to use Xcode. You simply create an iPhone application in Xcode, just the way you would do it when you want to code a normal iPhone app. You then simply add all the generated files to that project and off you go. You can run the code in Apple's simulator or you can create a package that you can then sign and push to an iPhone. > > > My goal is to pass the compile code to a friend and he test it in his > iphone (I don't have Iphone or Itouch in the meanwhile) As I said above, you definitely need OSX 10.5 for this. There is currently now way to compile iPhone/iPod apps anywhere else to my knowledge. > > > Can I use the code in a simple ipod? Of course without the wireless > connection and touchscreen functions. iPod is not problem at all. What do you mean by without touchscreen functions? An iPod and iPhone are no different when it comes to the touchscreen. > > > I noticed that the project is not document and making use of the javadoc > functionality. Sorry for being annoying, but will you document it?, should > be a great help. First of all, plenty of JavaDoc exists, we just don't generate it yet. JavaDoc wouldn't be so helpful as long as you just want to use XMLVM. If you want to extend it, then JavaDoc is important. But then you can easily generate it youself using Eclipse for example. We are aware, that there is still plenty of JavaDoc missing and we are working on it. > > > *HINT:* you should include the images of the Iphone into one of the JARs, > at the beggining I was expecting to run the helloWorld and see a pop-up > screen with the result instead of a displaying error. > > *PS.:* excuse my English, I'm improving it. It's absolutely fine, no worries! :) > > *PS.:* I will try to make a plugin to eclipse in order to use your > project. (Just to learn how to make a plugin and who knows if that helps the > users) What would this plugin do? > > > ------------------------------------------------------------------------------ > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: Sascha H. <sa...@gm...> - 2009-07-26 14:27:39
|
Update: I just checked in a change that adds XMLVM output support. So if you don't set any target or you set the xmlvm target explicitly, XMLVM files will be written. // Sascha On Fri, Jul 24, 2009 at 11:13 PM, Sascha Haeberling <sa...@gm...>wrote: > Please see my comments inline... > > On Fri, Jul 24, 2009 at 6:34 PM, Daniel Branco <db...@gm...> wrote: > > ... > > >> >> Changing the subject, can anyone explain me how to use the code, generated >> by the xmlvm, in the iphone when I compiled the class with the following: >> >> %xmlvm% --in=holaMundo.class --target=iphone --iphone-app=holaMundo >> --out="./salida/" >> >> take into account that %xmlvm% is equal to "java -jar xmlvm.jar". > > > You basically have two options here, but bare in mind that you need to have > OSX 10.5 in order to compile the generated Objective-C code to an > iPhone/iPod application. > > This command line should generate you a Makefile along with the compiled > code. This Makefile can be used on OSX 10.5 to compile the application and > to launch it in Apples iPhone emulator. At least with the iPhone SDK 2.X > this works. I've heard Arno saying that they changed something in 3.0 so > this method is currently not working with the 3.0 SDK. > > You other option is to use Xcode. You simply create an iPhone application > in Xcode, just the way you would do it when you want to code a normal iPhone > app. You then simply add all the generated files to that project and off you > go. You can run the code in Apple's simulator or you can create a package > that you can then sign and push to an iPhone. > > >> >> >> My goal is to pass the compile code to a friend and he test it in his >> iphone (I don't have Iphone or Itouch in the meanwhile) > > > As I said above, you definitely need OSX 10.5 for this. There is currently > now way to compile iPhone/iPod apps anywhere else to my knowledge. > > >> >> >> Can I use the code in a simple ipod? Of course without the wireless >> connection and touchscreen functions. > > > iPod is not problem at all. What do you mean by without touchscreen > functions? An iPod and iPhone are no different when it comes to the > touchscreen. > > >> >> >> I noticed that the project is not document and making use of the javadoc >> functionality. Sorry for being annoying, but will you document it?, should >> be a great help. > > > First of all, plenty of JavaDoc exists, we just don't generate it yet. > JavaDoc wouldn't be so helpful as long as you just want to use XMLVM. If you > want to extend it, then JavaDoc is important. But then you can easily > generate it youself using Eclipse for example. We are aware, that there is > still plenty of JavaDoc missing and we are working on it. > > >> >> >> *HINT:* you should include the images of the Iphone into one of the JARs, >> at the beggining I was expecting to run the helloWorld and see a pop-up >> screen with the result instead of a displaying error. >> >> *PS.:* excuse my English, I'm improving it. > > > It's absolutely fine, no worries! :) > > >> >> *PS.:* I will try to make a plugin to eclipse in order to use your >> project. (Just to learn how to make a plugin and who knows if that helps the >> users) > > > What would this plugin do? > > >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> > |