The command "java -XshowSettings:properties -version" does not work for 1.6 JVM, according to the documentation, the correct tools.jar will be chosen running it.
How can we use this command for 1.6 JVM?
There is no other way, you must upgrade the JAVA to at least 8 to use auto attach.