• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to convert webapp into desktop/standalone application?

 
Winston Liek
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web app using spring MVC + hibernate on the server side and jquery, ajax, javascript on the client side.

What I wish to do is to convert it into an exe file to make it standalone app.

Is there a software out there that can accomplish it? I don't want to recreate it from the scratch and I only know how to do web apps.

Thanks!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35719
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Liek wrote:I only know how to do web apps.

This seems like a good opportunity to learn something new.

I don't think what you want exists. I also don't understand what it would mean. A web app communicates with a server to get to a database. A standalone app is typically not concerned with the network so frequently. So it would be an application with a different approach.
 
Jayesh A Lalwani
Rancher
Posts: 2762
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Spring Boot http://spring.io/blog/2014/03/07/deploying-spring-boot-applications. Spring Boot starts an embedded instance of tomcat, and any Spring MVC applications in your standalone application are automatically deployed during startup
 
Tim Holloway
Bartender
Posts: 18414
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The fundamental architecture of a webapp is generally different than that of a desktop app, although for GUI apps using MVC there's a certain functional correspondence. But even using JSF, which reduces a lot of the UI to declarative forms (which are easier to convert to different platforms via an automated tool), it would be a challenge. I think that JSF did have such ambitions at one time, but more recently it has become more HTML-centric.

If you did go the Spring Boot approach, you wouldn't be the first. One of the VMWare products included Tomcat server provisioned with a VMWare VM machine configuration and control app. Casual users wouldn't have even realized that it had Tomcat in it, in fact.

It seems a bit of overkill to go that route, but it's one way recycle a lot of web-specific code when the only other option would be a completely designed-from-scratch Java app.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!