Sample Header Ad - 728x90

Is -d64 required for java on linux?

0 votes
1 answer
1901 views
We are generating scripts for running java on RHEL or an Amazon Linux ami. The scripts all now contain the -d64 option. We are using OpenJdk 1.8 64-bit. The oracle faq question [When you download the SDK or JRE, must you choose between the 32 and 64-bit versions? ](http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#64bit_layering) indicates that this option is only on Linux for compatibility reasons. It says > All other platforms (Windows and Linux) contain separate 32 and 64-bit installation packages. If both packages are installed on a system, you select one or the other by adding the appropriate "bin" directory to your path. For consistency, the Java implementations on Linux accept the -d64 option. So it seems like -d64 is not needed for scripts running on Linux. It may be better to only add that option when running on solaris. Is it required? What would be the harm in removing it from our scripts?
Asked by John Mercier (288 rep)
May 8, 2017, 11:58 AM
Last activity: Aug 11, 2025, 05:06 AM