Java to JavaScript using GWT compiler

前端 未结 4 2027
长发绾君心
长发绾君心 2021-02-07 12:43

I have some Java code written that I\'d like to convert to JavaScript. I wonder if it is possible to use the GWT compiler to compile the mentioned Java code into JavaScript code

4条回答
  •  猫巷女王i
    2021-02-07 12:51

    Maybe I can answer your second question: "If GWT compiler can't do this, can some other tool?"

    I am using Java2Script for quite a while now, also on quite large projects. Integration with native JavaScript is fine, names are preserved, and after some time one can even match the generated JavaScript (in the browser debugger) with the original Java code with little effort.

    Udo

提交回复
热议问题