Jam Dos
Jam Dos

Reputation: 149

Java Application on a webpage

I have a complete and pure Java project (GUI game) which I want to run it on my website.

What is the best to do without creating the whole java project from scratch or is there any technologies I can use to embedded my java project on my website.

I know it became more difficult to do this as most broswer do not support java anymore. I know there is a way to do using Java Web Application using Apache Tomcat, but I do not want to do route. I am trying to find more easier and better to solution to this

Thank you

Upvotes: 1

Views: 46

Answers (1)

czupe
czupe

Reputation: 4919

Unfortunately, It is quite possible that you need to rewrite some parts of your application. Mainly because it is a different language (I assume SWING, AWT, or another Java-based library, but you could tell more about your project and used libraries).

There is usually two parts of a game/application (super simplified):

  • backend,
  • frontend,

I am quite sure you can use most of your backend code. But the frontend probably needs to be rewritten. It is even better if you loosely coupled those two parts meaning there is no code in the backend for the frontend because you will have a harder time now breaking it down.

For example, you could check Vaadin and see what you could use from there to refactor your GUI application to be work on a plain browser.

Vaadin basically lets you write only or MOSTLY Java code and still create a website, webpage.

Good luck!

p.s: Next time I recommend you (if you wanna publish it to a different platform) a cross-platform language, you write once and you can run it publish it on multiple platforms.

Upvotes: 1

Related Questions