From: Sascha H. <sa...@xm...> - 2010-05-28 15:05:36
|
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 > > |