From: D S. <dav...@ya...> - 2010-05-28 17:34:25
|
I seem to be having no end of trouble generating the app. It seems that if the file name has a space in it, java.io.File(String) ignores the space and everything after it. So it's telling the path assigned to the environment variable "XMLVM_QOOXDOO_PATH" doesn't exist. The Java API documentation is oddly silent on the issue. So after a number of futile attempts to encode/escape the space characters, I commented out the parts in org.xmlvm.proc.out.QooxdooOutputProcess.peformSanityChecks() that check if the qooxdoo directory and the app-creating script exist, rebuilt the jar file, and tried again. XMLVM is now telling me that the output directory (build/js) isn't a valid qx project because the file build/js/temp_cache/temp_qx_app/generate.py doesn't exist. On a related question, before I started playing around with XMLVM, I noticed that XML11 generates the JS without the need for python. What is XML11 using to generate the app? Thanks, D ________________________________ From: Sascha Haeberling <sa...@xm...> To: D Sledge <dav...@ya...> Cc: xml...@li... Sent: Fri, May 28, 2010 9:05:14 AM Subject: Re: [xmlvm-users] Demos Translated to JavaScript The way you translated the app will only give you the JS code of that single file, and not a whole app that works. In order to get an app that is usable and that contains all the required dependencies, you need to use the --target=qooxdoo flag. I am actually not sure if the AbsoluteCalculator works, I haven't tried it in a while. But I will keep this in mind and try to check it on the weekend. // Sascha On Fri, May 28, 2010 at 4:47 PM, D Sledge <dav...@ya...> wrote: > >I used the command: > > java -jar "dist/xmlvm.jar" --in=build/demo/java-desktop/org/xmlvm/demo/AbsoluteCalculator.class --out=build/js --target=js > >It generated a single js file (org_xmlvm_demo_AbsoluteCalculator.js), but I don't see a way to specify in which HTML element to display it. I also see it has some dependencies that where not generated with in the file, such as the objects java_lang_Object and qx. The latter I realize is part of the qooxdoo framework, but I find that a bit perplexing since the command flag "--target=qooxdoo" specifies a qooxdoo js app. > >Thanks, > >D > > > >> > ________________________________ From: Sascha Haeberling <sa...@xm...> >To: D Sledge <dav...@ya...> >Cc: xml...@li... >Sent: Fri, May 28, 2010 4:00:26 AM >Subject: Re: [xmlvm-users] Demos Translated to JavaScript > > >>Hi D, > > >how did you cross-compile the demo exactly? I ask, because there a different ways of doing it. > > >Thanks >// Sascha > > > >On Wed, May 26, 2010 at 11:52 PM, D Sledge <dav...@ya...> wrote: > >>> >>So once I cross-complile one of the demos to JavaScript (specifically the Java-base AbsoluteCalculator demo), how do I see the generated script in action? >> >>Thanks, >> >>D >> >> >>------------------------------------------------------------------------------ >> >> >>_______________________________________________ >>>>xmlvm-users mailing list >>xml...@li... >>https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> > > >------------------------------------------------------------------------------ > > >_______________________________________________ >>xmlvm-users mailing list >xml...@li... >https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |