Can we run a JavaFX sesktop application in the web?

Viewed 2230

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.

3 Answers

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.

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.

Related