5 Replies Latest reply on Jul 1, 2009 4:52 PM by peterj

    Compile Jboss 32bit on Linux 64bit

    matvrix

      What are the complexities doing this ?

        • 1. Re: Compile Jboss 32bit on Linux 64bit
          peterj

          None. Java source code and compiled Java code is 32-bit/64-bit OS agnostic.

          • 2. Re: Compile Jboss 32bit on Linux 64bit
            peterj

            Actually, you do not need to recompile JBoss AS - simple download the binary zip file, unzip it, and run it with either a 32-bit or 64-bit JVM.

            • 3. Re: Compile Jboss 32bit on Linux 64bit
              matvrix

              So, JBOSS mode 32/64 is determined by the version of JVM it supports ?

              • 4. Re: Compile Jboss 32bit on Linux 64bit
                matvrix

                So, JBOSS mode 32/64 is determined by the version of JVM it supports ?

                • 5. Re: Compile Jboss 32bit on Linux 64bit
                  peterj

                  Not sure what you are asking. The JVM is a virtual machine that defines its own instruction set and architecture, including the size of the data types. This virtual machine, within which Java apps run, is the same regardless of the architecture of the host environment, whether 32, 64 or even 48 bits (we have a JVM that runs on a 48bit machine, and JBoss AS runs without changes). Thus, a 64-bit JVM running on a 64-bit Linux OS provides the exact same virtual machine environment for Java applications as would a 32-bit JVM running on Windows (well, because the 64-bit JVM has a larger available memory area, you can assign larger heaps than for a 32-bit JVM). This is what makes the "compile once, run everywhere" mantra for Java true.