nauphone / ServerAccess

A tool to provide easy and seamless access to multiple servers via SSH
GNU General Public License v2.0
18 stars 3 forks source link

Flag -d64 from the startup script is not supported by some JVM distributions #74

Open ahitrin opened 5 years ago

ahitrin commented 5 years ago

When running ServerAccess for OpenJDK 10:

$ /opt/naumen/server-access/server-access    
Unrecognized option: -d64                                                                       
Error: Could not create the Java Virtual Machine.                                               
Error: A fatal exception has occurred. Program will exit.
$ java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3, mixed mode)
$ uname -a
Linux zlobookIII 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

When I manually remove -d64 flag from /opt/naumen/server-acces/server-access script, an application starts without any problem.

Seems like -d64 run option is obsolete and should not used. See here for more information

underoll commented 5 years ago

Looks like this flag does completely nothing in non-Solaris OS.

https://www.oracle.com/technetwork/java/hotspotfaq-138619.html#64bit_layering "For consistency, the Java implementations on Linux accept the -d64 option."