Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
Ranch Hand
Posts: 194
  • 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!
 
author & internet detective
Posts: 39396
763
Eclipse IDE VI Editor Java
  • 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.
 
Rancher
Posts: 2759
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
 
Bartender
Posts: 20934
127
Android Eclipse IDE Tomcat Server Redhat Java 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!