How can I Make Single Application for web and desktop in JAVA

516 Views Asked by At

I need to make a cross platform application than can run on MAC, Windows, Linux and also on web. Can JAVA be used for this? If yes then what type of JAVA project and what architecture should I use? And also need to implement MVC.

My Application will store data on local pc and will also have same interface on web. And both platforms will keep in sync!

2

There are 2 best solutions below

0
On BEST ANSWER

Your choices are somewhat as follows.

  • Create a remote server
  • Create a Swing desktop client
  • Use the Swing client through Web Start or create a separate web client on the remote server (with any frameworks of your choice).

Obviously the choice without a separate web client is simpler, but it also means that all "web" users must have Java installed and Web Start must be allowed.

2
On

Yes java is best fit for this....about project type first of all decide the frameworks you are going to use.