I have my machine and IDE with following configuration
Product Version: NetBeans IDE 7.2 (Build 201207171143) Java: 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
The JavaFx bundle (.exe) created during build is of 64 bit. My users are in 32 bit machine so I need to create bundles in 32 bit. Is there any way I can create 32 bit exe files using my machine
Tried downloding 32 bit JDK and pointed the same in the project properties but i am not sure if the exe created in 32 bit or not because in task manager the application does not know *32 next to it.
Which .exe you are referring to?
In general answer is yes, you should be able to build 32 bit package on 64 bit system if you use 32 bit tools.
If you are referring to application launcher .exe then it should be enough to use 32 bit JDK.
If you are referring to installer .exe then it is controlled by inno setup config file (http://www.jrsoftware.org/ishelp/index.php?topic=32vs64bitinstalls).
By default packager tools do not use this directive and all .exe installers are in fact 32 bit installers (this is current limitation but this should not impact your use case).
You can use Process Explorer to verify what type of binary it is (see details in http://superuser.com/questions/358434/how-to-check-if-a-binary-is-32-or-64-bit-on-windows)
I was talking about the launcher exe
I downloaded jdk-7u9-windows-i586.exe and my project property has java platform pointed to the same installation
When I saw the launcher exe in process explorer it is still showing 64 bit.
If java.exe is 64 bit then this means you installed wrong JDK bundle. Try to download and install again.
You "ant -v" to validate when ant-javafx.jar tasks are taken from. Launcher .exe file is simply extracted from jar file and
32 bit JDK does not have 64 bit launcher in the ant-javafx.jar. As long as you are using 32 bit JDK it could not extract 64 bit launcher ...
With 32 bit JDK set in the project properties the output jar is 32 bit but the exe wrapper is still 64 bit . Is this because Netbeans is running on 54 bit Java?
Where do I specify the jdk which should be used for bundling ?
Ok Finally I had to edit netbeans.conf to point to my 32 bit java installation so that it creates 32 bit wrapper.
Ii.e netbeans now uses 32 bit java for itself and I am not utilizing my laptop's full power :(