I am using the eclipse for web application coding. Within this I passed environment variable like :
- Project--> Run as --> Run Configuration. And selected Environment tab.
- Add new environment variable with name
APP_MASTER_PASSWORD
and its value.
I can access this value in java code as System.getenv("APP_MASTER_PASSWORD")
.
But now I want to pass this environment variable to tomcat and access it in application instead of passing thru eclipse.
So how can I pass such variable to tomcat?
I googled about it. But I didn't get any solution.