| ←Older revision |
Revision as of 05:15, 1 October 2021 |
| Line 112: |
Line 112: |
| | We can use [[debugger]] and verify the behavior of the [[Java]] application logic the way we are used to. | | We can use [[debugger]] and verify the behavior of the [[Java]] application logic the way we are used to. |
| | | | |
| - | === [[Bck2Brwsr]] === | + | === [[Bck2Brwsr]] & other transpilers === |
| | | | |
| | Originally we started with a [[GWT]] application. Now we have a real [[Java]] application, which can run on desktop and render its [[HTML]] UI via [[JavaFX]]. [[Good]], however our original application used to run in a browser. Can we do the same? | | Originally we started with a [[GWT]] application. Now we have a real [[Java]] application, which can run on desktop and render its [[HTML]] UI via [[JavaFX]]. [[Good]], however our original application used to run in a browser. Can we do the same? |
| | | | |
| - | Yes, we can. With the help of [[Bck2Brwsr]] [[VM]], we can take the same application and repackage it so it runs in a pluginless browser. Just choose ''bck2brwsr'' [[Maven]] configuration and rebuild. | + | Yes, we can. With the help of [[Bck2Brwsr]] [[VM]], we can take the same application and repackage it so it runs in a pluginless browser. Just choose ''bck2brwsr'' [[Maven]] configuration and rebuild. Btw. [[TeaVM]] also supports the {{HTML4J|net/java/html/js|JavaScriptBody}} annotation and other transpilers are encouraged to joint this ecosystem and do the same. |
| | | | |
| | Say farewell to [[GWT]]. Enjoy your [[GWT]]-less [[HTML]]/[[Java]] applications! Long live [[Java]] in browsers! | | Say farewell to [[GWT]]. Enjoy your [[GWT]]-less [[HTML]]/[[Java]] applications! Long live [[Java]] in browsers! |