Compile 32 bit Java builds on 64 bit machine with Eclipse

前端 未结 5 1726
粉色の甜心
粉色の甜心 2021-01-24 20:41

so the questions as in the title, I need to run my server application in Tomcat on a System which is 32 bit Windows XP, I am working and compiling on my 64 bit Windows 7 in Ecli

相关标签:
5条回答
  • 2021-01-24 21:03

    If you're still searching for some "simple" solution, one would be to install a 32 bit os in a virtual machine and run eclipse from there.. Very ugly I know, but it works.

    Another approach is mentioned here. How to launch java swing app which used precompled DLL from cmd?

    0 讨论(0)
  • 2021-01-24 21:13

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

    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.

    0 讨论(0)
  • 2021-01-24 21:13

    The problem is your JNI DLL, which needs to be compiled for 32-bit to match the 32-bit JRE.

    0 讨论(0)
  • 2021-01-24 21:15

    Java is independent of the OS.

    You can compile with your 64bit machine and run this on a 32bit computer as long as this computer has a 32bit VM.

    0 讨论(0)
  • 2021-01-24 21:16

    You could install a 32bits jdk on a 64bits machine. point the JAVA_HOME to this jdk and use it. It

    0 讨论(0)
提交回复
热议问题