Running (require 'lsp-java-treemacs) without a GUI results in the following error: (void-variable treemacs-icon-java)
This is because the PNG icon variables are not set when running Emacs without a graphical environment, because it's impossible there; see https://github.com/Alexander-Miller/treemacs/blob/master/src/elisp/treemacs-icons.el#L31