Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • To see if some other process is 32 or 64 bits? Or to check if the running JVM is 32/64 bits? Commented Aug 6, 2013 at 0:27
  • To see other process in Windows, not JVM. Commented Aug 6, 2013 at 0:28
  • I found that this is quite similar... stackoverflow.com/a/9783522 Commented Aug 6, 2013 at 3:01
  • @Mango - it is similar, but it only covers half of your Question ... and none of its original version. Commented Aug 7, 2013 at 3:35
  • 1
    I also found this, msdn.microsoft.com/library/windows/hardware/gg463125, it describe the structure of executable (image) files. I am able to extract the bit size of the exe file (0x8664 is 64bits and 0x14c is 32 bits) by putting the exe file in fileInputStream in java and looking for the PE (Portable Executable, PE). The PE is consuming 4 bytes of data, which is"P E null null". The bit size of exe file is right after the 4 bytes of PE. Commented Aug 7, 2013 at 6:18