...
java.lang.UnsupportedClassVersionError: org/eclipse/jdt/internal/compiler/env/INameEnvironment has been compiled by a more recent version…
Seems I originally installed tomcat9 via
apt
, but it seems like I hit a known bug (The workaround in the first link didn’t work for me… So I re-traced my steps
(undoing the workaround)
sudo apt remove libecj-java
sudo unlink /var/lib/tomcat9/lib/ecj.jar
(undoing our other another workaround for Smart Tomcat, if you used
apt
)sudo unlink /usr/share/tomcat9/conf
(removing tomcat via
apt
)sudo apt purge tomcat9 tomcat9-admin
(purge
removes config files too)
(remove user and group automatically added by
apt
)sudo userdel tomcat
sudo groupdel tomcat