Bad interpreter error when setting up Tomcat for remote debugging

Posted on


I’m trying to set up Tomcat for remote debugging, following these instructions.

After having done the complete process, I get this error when I try to run my script:

-bash: ./ /bin/sh: bad interpreter: Operation not permitted

Let’s notice that before doing that, I could start my Tomcat server correctly.
Does someone have an idea about where I could have made a mistake?


It actually seems like the problem comes from Mac OS. When I unlocked the file in order to write the export command, it seems like the OS put the file in quarantine. The command xattr -d solve the issue.

And each time I modify the concerned file, the problem arises. So I have to use the command every time.

Have you tried launching using the Catalina instead of Have ran into similar problems before. Looks like in the guide you need to use Catalina to fire up the server.

Leave a Reply

Your email address will not be published. Required fields are marked *