I have my application with maven where you can 'cd' to this directory /path/app/execute/. and run 'mvnw' and the app starts fine.
My problem is I want to create a start script in the parent directory here: /path/app/startMyApp.sh.
It's contents are:
nohup /path/app/execute/mvnw &
Error: Could not find or load main class
Noting the difference between "mvnw" and "mvn" in your question, if the crux of your problem is changing directory into /path/app/execute under
nohup sh -c 'cd /path/app/execute; mvnw' &