HTML/Java via CLI was: Using ikvm for xaml app
Jaroslav Tulach <[email protected]> Wed, 18 Feb 2015 13:31:32 +0100
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <CAM6-voH5V9hcw7jY5mbQM=UiZr-aU7EWvWEo748F31AxnwO-ig@mail.gmail.com> |
Thanks for your interest in HTML/Java APIs. My reply should be generally interesting, so I am cross-posting to DukeScript mailing list. Netiquete might suggest us to move our discussion there... 2015-02-18 12:13 GMT+01:00 Volker Berlin <[email protected]>: > > Am 18.02.2015 um 08:33 schrieb Jaroslav Tulach: > > To explain: I am interested in running any DukeScript ( > http://dukescript.com/) > > application on Windows Phone. Such applications have one WebView > component as > > a UI and control its content in by a Java code. > > This look very interesting. My problem to look deeper it that it seems > to work only with NetBeans. While I am naturally emotionally attached to NetBeans, I am over forcing people to use the IDE. As such the whole system is usable from command line. No IDE support is needed. > For another IDEs like Eclipse or Idea there > is no documentation. Nobody wrote it and expecting me to do it would be unrealistic. But it is reported to work. Some evidence can be found at http://wiki.apidesign.org/wiki/Bck2BrwsrViaCLI > I have also nothing found how to build it with > gradle or ant. > It should work. It works in NetBeans (which still use Ant to build itself). But when using Ant everyone is on his own - e.g. no reason to provide special support to it. Just watch what "mvn -X package" does and mimic that. The only non-standard issue to solve is bytecode post-processing explained at http://bits.netbeans.org/html+java/1.1/net/java/html/js/package-summary.html#post-process and implemented in Ant scripts as http://hg.netbeans.org/main-golden/rev/a5c35d44103c As far as Gradle goes: I am unwilling to enter the IDE wars, and I have even less reasons to enter the build tool ones. However I will be more than happy if somebody implements and maintains Gradle support - again the only special part is the bytecode post-processing. > That I am not sure if I have understand all. But my understand is that > you need to reimplement the package API of net.java.html, etc in C#. It should be far more easier (unless I did poor job designing the whole system) - enough to implement a presenter: http://bits.netbeans.org/html+java/1.1/org/netbeans/html/boot/spi/Fn.Presenter.html and pass a TCK: http://bits.netbeans.org/html+java/1.1/org/netbeans/html/json/tck/package-summary.html Btw. the most modern way to get started via CLI described at http://dukescript.com/update/2015/02/05/New-Version-of-Dukescript.html also contains references to repositories with implementations of presenters for various platforms. I was planning to mimic one of the implementations and just bind it to C#'s WebView. > You > does not need the completely OpenJDK API. You have your own API (partly > extended from OpenJDK). In this case you need a fork of IKVM or a subset. > I would certainly like to avoid forking IKVM libraries. I know Jeroen warned me that some functionality won't work on Window Phone, but hopefully the HTML/Java is using so little of OpenJDK (collections, WeakReference, no reflection) that it might work. > Is this right? ARe there any startpoint for not NetBeans users. > Please start at http://dukescript.com/update/2015/02/05/New-Version-of-Dukescript.html and share with us your observations. Thanks again for your interest. -jt ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk > _______________________________________________ > Ikvm-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ Ikvm-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ikvm-developers