Spring boot - Making a 32 bit app in a 64 bit system
posted 10 months ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Can someone help me? What configurations should I do to make a 32 bit app in a 64 bit system with Intellij?
I downloaded a 32 bit JDK. What are the new settings?
I downloaded a 32 bit JDK. What are the new settings?
posted 10 months ago
-
1 -
-
Number of slices to send:Optional 'thank-you' note:
-
-
What JDK did you download?
32-bit systems are virtually extinct these days. Even the diminutive Raspberry Pi runs 64-bits these days.
Regardless, the architecture size of the host OS makes no difference. Whether it's 32-bit, 64-bit, or even 96-bit, the JVM uses the same logical word sizes for all its Java objects. If you could cram a JVM into 64K of RAM, it, too would do so. It's a large part of how Java can be "write once/run anywhere".
So you need not worry.
32-bit systems are virtually extinct these days. Even the diminutive Raspberry Pi runs 64-bits these days.
Regardless, the architecture size of the host OS makes no difference. Whether it's 32-bit, 64-bit, or even 96-bit, the JVM uses the same logical word sizes for all its Java objects. If you could cram a JVM into 64K of RAM, it, too would do so. It's a large part of how Java can be "write once/run anywhere".
So you need not worry.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Sot Nikele
Greenhorn
Posts: 26
posted 10 months ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
So if I understand well, I can compile and extract to a jar file and that runs in every system.
The jdk I downloaded is here:
https://adoptium.net/temurin/releases/?os=windows&arch=x86&package=jdk&version=17
The jdk I downloaded is here:
https://adoptium.net/temurin/releases/?os=windows&arch=x86&package=jdk&version=17
posted 10 months ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Yes, that is correct.
I'm not familiar with that product, but it's giving you an MSI-based install for OpenJDK on 32-bit Windows. If your Windows machine is less than 10 years old, it's probably running 64-bit Windows and the bigger problem would be to get any of that to run at all. Windows 11 will not support 32 bits at all. Then again, Windows 11 doesn't support a lot of things, which means some people are simply converting to Linux rather than replace their current computer. But that's another story.
You probably want to download and install the x64 MSI instead. If the 32-bit version runs for you and your current Windows is 64 bit, it's likely to be using "shims" to make it work and that's extra overhead.
You'll have to tell IntelliJ where the JDK got installed in order to have IntelliJ to use it. Java allows multiple JDKs to run on the same machine, unlike Internet (There Can Be Only One!) Explorer.
I'm not familiar with that product, but it's giving you an MSI-based install for OpenJDK on 32-bit Windows. If your Windows machine is less than 10 years old, it's probably running 64-bit Windows and the bigger problem would be to get any of that to run at all. Windows 11 will not support 32 bits at all. Then again, Windows 11 doesn't support a lot of things, which means some people are simply converting to Linux rather than replace their current computer. But that's another story.
You probably want to download and install the x64 MSI instead. If the 32-bit version runs for you and your current Windows is 64 bit, it's likely to be using "shims" to make it work and that's extra overhead.
You'll have to tell IntelliJ where the JDK got installed in order to have IntelliJ to use it. Java allows multiple JDKs to run on the same machine, unlike Internet (There Can Be Only One!) Explorer.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
| A day job? In an office? My worst nightmare! Comfort me tiny ad! Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |











