java -d64 -server -Xshare:dump
Error occurred during initialization of VM
Dumping a shared archive is not supported on the Server JVM.
The message it confusing: for latest Hotspot, shared archive is in fact supported on the Server VM, it is just not supported for 64-bit VMs.
I suggest to change wording to "Dumping a shared archive is not supported on this configuration."
Here is another confusing message:
java -server -Xcomp -Xincgc -Xshare:dump
error: invalid argument combination.
The CMS collector (-XX:+UseConcMarkSweepGC) must be selected in order
to use CMSIncrementalMode.
Could not create the Java virtual machine.