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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:21:56+00:00 2026-06-05T04:21:56+00:00

Is it possible to create via Install4J a single media file for Windows that

  • 0

Is it possible to create via Install4J a single media file for Windows that can run in both cases when user has 32bit or 64bit JRE installed?

I have a case where I’m wrapping an application that has no need for 64bit OS features. So I have selected a 32bit (Install4J) executable to be generated. Eventually we experienced problems when we have tried to install on 64bit Win7 that has 64bit JRE installed. Installer complained about a missing 32bit JRE.

In Help Guide of Install4J I have found the following:

On Windows, a native executable can be either a 32-bit or a 64-bit executable. If you need a 64-bit JRE for your application you can choose to generate 64-bit installers and launchers for a media file. Note that it is not possible to create launchers that work with both 64-bit and 32-bit JREs. Since the launcher starts the JVM with the JNI interface by loading the JVM DLL, the architecture has to be the same. If you target both 32-bit and 64-bit JREs and operating systems, you have to generate different media files for them.

I’m hoping that bold is referring for those cases when you do need specific 64bit features.

Any help? Thanks in advance.

  • 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-05T04:21:58+00:00Added an answer on June 5, 2026 at 4:21 am

    I have managed to found the solution that is actually a “hack”.

    The idea is to pack appropriate 32bit Java as bundle and to instruct Install4J not to use user’s Java and not to depend on it. As output Install4J will create “jre” folder on the same level where the app itself is installed. By doing so it is even possible to run both installer and app when user has no JRE installed on the machine.

    The way I have created such Install4J configuration is following:

    • open “Media” and then “Windows” (or any other if you want to bundle JRE for Unix or Mac)
    • select “Bundled JRE”
    • check “Bundle the following JRE” and then locate Java version you want
    • leave unchecked both “Install as shared JRE” and “Install only if no other suitable JRE is found” (this will place JRE in folder where you have installed the app)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to create a Partial View, which has a controller, which can
Is it possible to create a property in C# that has a variable number
Is it possible to change the contents of a file that exists via a
Is possible create facebook app with 100% width? Something like this: https://apps.facebook.com/what_car_fits/ (app has
Possible Duplicate: Create Excel file in Java How to save output in excel format
Possible Duplicate: Create shortcut to console.log() In javascript we can easy assign functions to
Is it possible to create a single dll using 2 projects in MS VS
Is it possible to create an object that is @RooSolrSearchable without being a JPA
I need to create a python module that will be installed on end-user machines.
I have a program that I am going to deploy via a Windows installer.

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.