I'm running a jetty-based Maven web application on Red Hat Linux. When I run it using the normal command, mvn jetty:run, it runs fine.However, when I try to run this command under a screen session or nohup command, it has trouble finding shared libraries.These shared libraries are .so files stored in a folder named lib. I add this folder to my Java library path in ~/.bash_profile.export MAVEN_OPTS=-Djava.library.path=/group/libI wanted to know why my Jetty webapp doesn't work when I run it with screen or nohup. I thought that screen at least inherits the environment variables from the parent process. Any ideas on what could be wrong?
Shared libraries can't be found inside a screen session
gnu screen;java