Digital Marketing

How to solve Java: not found problem with Glassfish

If you get an error when starting Glassfish similar to this:
[]# service glassfish3 start
Starting Glassfish Service java
glassfish/bin/asadmin: line 54: exec: java: not found

You need to re-configure your Java path in your Glassfissh configuration file:

Open glassfish/config/asenv.conf in your editor of choice and add path similar to the following line:


Save the file and Glassfish service should start without problems.

You can find your Java path by:

which java


Popular posts from this blog

Fixed WSL sshd: no hostkeys available -- exiting

PowerMTA pmta command

How to fix: mv: failed to preserve ownership