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 992837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:19:43+00:00 2026-05-16T06:19:43+00:00

I have a working JNLP application which I need to distribute to various non-technical

  • 0

I have a working JNLP application which I need to distribute to various non-technical end users.

If the user’s machine has a recent JVM installed, everything is fine. They just double-click the JNLP file I send them and Java Web Start does the rest.

Now I would like to distribute something that works with or without a JVM, e.g. a .exe file that auto-downloads a compatible JVM if none is present, then invokes javaws.exe to download the .jar files and launch the application.

Launch4J is the closest match I have found, but it cannot launch a program through javaws.exe. The only options are java and javaw

I would like a product that can:

  • Generate a self-contained .exe file that does not require a JVM to be pre-installed
  • Parse the .jnlp file and determine the correct JVM to download if necessary (I know Java Web Start can download a JVM if necessary, but I want to avoid having to download two, the first to bootstrap Java Web Start and the second to run the application which may require a specific but different JVM.)
  • Download and install the JVM automatically, not simply direct the user to a Java download page or open a new installation wizard.
  • Prompt for an admin password if necessary (for permissions to install the JVM. I don’t think this is built into the Sun JVM installers.)
  • Show only one security dialog (I would like to prompt the user just once, to confirm they trust the generated .exe, but I do not want a second prompt to confirm they trust the .jar file which will be from the same source and signed with the same certificate.) I assume this will require the auto-downloader to install the certificate before launching JWS.)
  • (not essential) Download application resources (e.g. .jar files) in the background simultaneously with the JVM. This would require the cache to be running before the JVM is installed, so the cache would have to be implemented in native code and the DownloadService would later interface to it using JNI.

Does a product like this exist? I suspect it does not but It’s worth a shot.


Update I found this article which has solutions to some related problems, though it is designed for offline installation and I am mostly concerned with online installation.

  • 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-05-16T06:19:44+00:00Added an answer on May 16, 2026 at 6:19 am

    I’ve run into the same problem. I ended up with a BAT, a Shell and eventual a DMG for Macs.

    I found this comment on automaded JRE installation for Windows using Nullsoft installer:

    http://nsis.sourceforge.net/Java_Launcher_with_automatic_JRE_installation

    I think outside JNLP you will find hard to get automation for all platforms. However on my project, up for two year, I haven’t seen complains about users having to get java by themselves. I believe most machines will have it already. Windows user complained about not having a shortcut, but that is easy to do using vbs.

    Also on the Mac DMG AppBundle, their is way to specify the JRE. Mac will have the lastest version, unless the are older PowerPC based machines. In that case no Java6.

    Of you end up with several launcher, I would recommend an automated update strategy.

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

Sidebar

Related Questions

I have working on an application which captures screen shots and create video from
I have working web-application with applicationContext.xml in WEB-INF/config/applicationContext.xml. Now i need to implement some
I have working in asp.net web application. Here I need to run JavaScript before
i have working codes from my server which is really working using Xampp server
We have an application in Grails 2.0 that we have working when we run
I have working copy of war file which is working fine in windows.. Now
I have working application in asp.net MVC3. Today when I was working on it
We have a simple project that uses JsonValueProviderFactory which we have working on a
I need to append text to win32 edit control i have working function to
I have a JNLP file that was working fine and it looks like my

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.