How feasible is it to convert a Java to JavaScript project?

前端 未结 2 1294
轮回少年
轮回少年 2021-02-10 08:36

I have a project I maintain in Java that runs primarily as an applet. I am finding that Applets are simply unpractical and dangerous for browser games as most end-users ignorant

相关标签:
2条回答
  • 2021-02-10 09:14

    Hmm.. GWT compiles java to JavaScript you can use it.

    Another possibility would be using Rhino

    Or just expose REST services and create an HTML5 web application using it.

    Edit: BTW search in the forum. I found some questions like this one.

    0 讨论(0)
  • 2021-02-10 09:25

    I found this tool called PlayN which may be what you're looking for. I've never used it before, but it looks promising. Of course, it may require rewriting your Java source to use their API, which means, as others have said, you're probably best off just manually porting to JavaScript.

    0 讨论(0)
提交回复
热议问题