0

I installed NetBeans 8.2 with GlassFish 4.1.1, but something didn't work, so I install it again with instructions from some website, and it worked perfect till now. Maybe I deleted something when I cleaned the computer memory. Don't know what is the problem, I'm new with this, never worked with servers and web applications before.

Anyway, I want to completely uninstall it with all files and then install again fresh, clean, working one.

How to do that using Terminal? I have Ubuntu 18.04, and want GlassFish 4.1.1.

1 Answers1

0

I am not familiar with GlassFish. Was it installed from a .deb or from apt? If so, then follow this Verify the package is installed first. Something like.

sudo dpkg --list | grep -i glass

If you see it listed as installed, something like.

ii  <package name>

Then uninstall.

sudo apt-get remove --purge <package name>

Answer yes if prompted.

If not, that means it was manually installed. I see some reference to uninstall it here

Looking around, some older posts suggested removing /opt/glassfishx, where x is the version number. So in your case.

rm -rvf /opt/glassfish4

Might be the answer after successfully killing the service.

R J
  • 624