I have a Java program which accesses some property files for it to work through a path which is set as an environment variable. I set the path using export command. The Java
jar file which is the executable is placed under some different user, and hence I use the
sudo option to run the
My problem is, when I set the environment variable on a test server, the program runs fine, however, when I make the same config settings on a production server, and try to run it, it shows that the path set for environment variable is null.
I know this has got something to do with the access or perhaps different server configs but as I am new to UNIX, I am not sure where I can start investigating.
Can anyone please help?