Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile 32 bit from Win7 64 bit

I would know if is possible compile a java desktop application in 32bit application from Windows 7 64bit using Netbeans.

Thx you for HELP.

like image 667
raf Avatar asked Sep 14 '10 17:09

raf


2 Answers

You don't have to build java code for 32-bit or 64-bit platforms. The code is compiled to byte code which is run by JVM. You can use 32-bit or 64-bit JVM to run your java code.

The only exception is native libraries that you might be using in your code. If there are any then you will have to manually compile those for the respective platform. Otherwise the java code is totally portable across 32-bit and 64-bit platforms.

Write once and run everywhere :-)

like image 50
Faisal Feroz Avatar answered Sep 30 '22 00:09

Faisal Feroz


Java doesn't build 32-bit or 64-bit applications - bytecode is portable across architectures.

If you rely on any native libraries, you'd have to potentially ship both versions of those - but the actual Java code won't need to be recompiled.

like image 44
Jon Skeet Avatar answered Sep 30 '22 01:09

Jon Skeet