2

I am developing a JavaFX application. As my development is almost complete, I would like to know if we can run our JavaFX app in a web browser. I have already read many posts that state that we can't run it now.

It is very confusing to determine whether we can run desktop application in the browser or not, as all posts I have read are old.

0009laH
  • 1,960
  • 13
  • 27
Waheed Khan
  • 104
  • 2
  • 10
  • 1
    There is somewhere a software package that provides I think JSF components for that. It is however a huge difference in control flow and with a parallel visual design. You might expect many things not working properly, needing changes. But you might create a Windows Setup especially with modular java > 9. I did Inno-Setup with JDK13 on a JavaFX application. – Joop Eggen Oct 08 '20 at 11:53
  • 2
    https://www.jpro.one/ – kleopatra Oct 08 '20 at 12:50

3 Answers3

4

What has been said so far is simply not true. You can run JavaFX application in a browser even without any plugin or such. Just have a look here: https://www.jpro.one/

Just look at their demo page https://www.jpro.one/?page=demos to see many well known JavaFX examples. You can try them out yourself there.

mipa
  • 10,369
  • 2
  • 16
  • 35
0

You can also compile it to javascript a la GWT using webfx-project (https://github.com/webfx-project/webfx).

The result is a single-page webapp (only HTML + javascript) running in the browser. And by the looks of the demos the result is exactly as the original JavaFX application.

Perdi Estaquel
  • 819
  • 1
  • 6
  • 21
0

If you develop using swing, then i recommend trying https://www.webswing.org

Tony Banks
  • 119
  • 5