In struggle to get rid of the current SNAP I face the same error as mentioned here. I wonder if you have also seen such error and if you could find a solution for it?
At this time I managed to uninstall the openjdk from my system and have :
java version “1.8.0_202”
Java™ SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot™ 64-Bit Server VM (build 25.202-b08, mixed mode)
As I do (sudo ./uninstall) in the /opt/snap/bin/ directory it gives the Error:
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be at least 1.8.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
I edited my .bashrc to provide the exact address of $JAVA_HOME and $INSTALL4J_JAVA_HOME.
But the same error keeps on appearing !