Forum Stats

  • 3,728,153 Users
  • 2,245,559 Discussions
  • 7,853,357 Comments

Discussions

deploying java swing app for both 32 and 64 bit Windows

jdevmt999
jdevmt999 Member Posts: 19
edited October 2015 in Java 8 Questions

I'm developing a Java Swing app with JDK 1.8.

I develop in Eclipse on Windows 7 64 bit, so I only have the 64 bit Windows 1.8 JDK and JRE.

I use the java packager tool for deploying my app.

Someone who is attempting to install this app is getting Windows errors when launching the install .exe created from java packager.  The error messages seem to indicate that they are using 32 bit Windows 7, most likely on an older computer.

So I would like to build and deploy both 32 and 64 bit versions of this app.

I suspect I need to get the 32 bit JDK and JRE for 1.8.  Is that correct as my first step?

I'm assuming that when I run java packager using the 32 bit JDK tools it will package the 32 bit JRE with the deployment.  Is this also correct?

Finally, I use Inno Setup 5 with the java packager tool.  Do I need a 32 bit version of this or is there a way I can tell Inno Setup 5 from java packager parameters to emit a 32 bit installation .exe?

Thanks,

Mike

Answers

  • user604476
    user604476 Member Posts: 2
    edited October 2015

    My default, when you run the javapackager tool, it'll package a JRE from the JDK you are currently using (what JAVA_HOME is set to). 

    It's possible to override this by changing your JAVA_HOME to a 32-bit JDK and use the 'javapackager -v pathToJdk' argument to specify where the JDK is.

    I bet you don't really need to build 64-bit versions; 64-bit is only really necessary if you need to use large amounts of RAM.  If you don't need 64-bit, you could just remove 64-bit JDK's from your system and install a 32-bit JDK.

Sign In or Register to comment.