Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

Ranch Hand
Posts: 197
  • 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.

author & internet detective
Posts: 39986
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.
Posts: 2759
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Spring Boot Spring Boot starts an embedded instance of tomcat, and any Spring MVC applications in your standalone application are automatically deployed during startup
Saloon Keeper
Posts: 22103
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.
What's wrong? Where are you going? Stop! Read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic