Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8795687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:26:35+00:00 2026-06-13T23:26:35+00:00

I have a Java desktop application and now we distribute it as a jar

  • 0

I have a Java desktop application and now we distribute it as a jar in a installer of a main application (currently the Java application is only an importer/exporter). But as the jar is updated more often than the main application we are thinking of making it run through Java Web Start so it’s updated independently when it start.

My question is how can I distribute it in the installer so if the user don’t have internet it use the jar bundle in the installer (and copied in the main application folder) but when he launch and have internet, Java Web Start update it?

Edit: I have think in making two JNLP files one for local launch and one for online launch so it get updated, but then they need to share the cached jar so isn’t installed two times, and I don’t know if this is possible.

Edit, more explanations:

Maybe I haven’t explain it very well. I have a native application and is distributed as an MSI, from download and through CD. With this application we distribute the Java application (a jar) that the main application used to exchange data to other formats. The MSI installs both the native app and copy the jar (not really install). Now if the user have internet and a new update is published, the complete MSI is downloaded and installed (updating the installation). Ok?

Well, we like to update only the jar in a more fashion approach, with Java Web Start, so it’s updated when the jar is run independently of the main app. This have the problem that if we only deploy it as Java Web Start, if the user install the app in a computer without internet (for example carrying the MSI in a pen-drive or cd) he will not be able to use it, because as he don’t have internet he can’t download the jar.

And now is when my question come, can I deploy the jar in the MSI but execute through a Java Web Start so if the user have internet it get updated but if he doesn’t have internet it still can use the bundle jar in the MSI?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:26:36+00:00Added an answer on June 13, 2026 at 11:26 pm

    ..can I deploy the jar in the MSI but execute through a Java Web Start so if the user have internet it get updated but if he doesn’t have internet it still can use the bundle jar in the MSI?

    OK, I am formulating a plan here, this might be doable.

    Let us presume that the MSI is capable of doing the following things.

    • Install a JRE if missing or too low a version available. The JRE needs to be included in the MSI (to avoid requiring the net).
    • Unpack the JWS launch file and Jar(s) (and native..) to the local file system as temporary files.
    • Invoke the javaws tool using ‘IMPORT-OPTIONS’ to set the code-base to the place in the local file-system they were unpacked.

    At this point, desktop icons and shortcuts should be installed, and the program ready to launch. It is vital to specify a few extra options in the JNLP – specifically offline-allowed to ensure the app. can still be launched if the internet is not available.

    Caveats: I don’t have any experience with MSI, and my experience with using the import options is limited to calling them from build files (during development).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a Java Desktop Application but have some confusions in choosing a
I have been using Netbeans for my java desktop application since few months. Now
I'm currently working on a bigger Java desktop-application and now are at the point
I have a desktop Java application built using Maven 2 (but I could upgrade
We have a spring-enabled java desktop application started through Java Web Start. The JNLP
I have a Java EE application with its EJB and database server. I'm now
Hi I have created a java application and created a jar file. Then I
We have a Java desktop application that accesses a Derby database located on a
Hi I have designed a desktop application in Java SE with netbeans and Mysql.I
I have written a Java desktop application in Windows platform that is using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.