• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

Spring boot - Making a 32 bit app in a 64 bit system

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Saloon Keeper
Posts: 28993
214
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sot Nikele
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Saloon Keeper
Posts: 28993
214
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
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
reply
    Bookmark Topic Watch Topic
  • New Topic