I have a Java .class file. Now I want to check it was compiled on a 32 bit machine or 64 bit machine ? I tried file command but it just says it is a compiled java class. Is there any way to find it?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|||||
|
|
Java class files are platform independent. There are no "64bit class files", they are all the same format. The things that can hinder portability of class files and libraries are:
Other than that, you can compile your classes with a 32bit JDK and run them on a 64bit JVM (or the other way around) – it'll just work. |
|||
|
|