Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
324 views
in Technique[技术] by (71.8m points)

swing - create 32 bit using 64 bit netbeans javapackager

i have a java swing application made using

  • netbeans (jdk1.8.0_111)
  • jre1.8.0_111
  • pavapckager to create exe file
  • application has some library's

enter image description here

When i package i get a 64bit installer using javapackager which is expected. I am trying to create a 32bit installer. i have tried:

  • installing 32 bit jre and jdk
  • setting path to the 32bit version
  • changing netbeans config to use: netbeans_jdkhome="C:Program Files (x86)Javajdk1.8.0_111"
  • using : -Bruntime="C:Program Files (x86)Javajdk1.8.0_111jre" in the javapackager

How do i create a 32 bit Self-Contained Application Packaging using javapackager on a 64 bit windows system using netbeans

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

after restarting my pc everything started to work.

this is what i done:

  • Install 32 bit jdk and jre
  • In netbeans project add a new platform and choose the 32 bit version (restart pc)
  • Install inno and set path.
  • run javapackager specifing the 32 bit i.e javapackager -deploy -native exe -B systemWide=true -Bruntime="C:Program Files (x86)Javajdk1.8.0_111jre" -Bshort cutHint=true -outdir packages ...etc
  • test with Exe64bitDetector

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...