This week's giveaway is in the Cloud/Virtualization forum. We're giving away four copies of Production-Ready Serverless (Operational Best Practices) and have Yan Cui on-line! See this thread for details.
I'm happy to be back to the ranch family. It's been long since i visited. And i'm back with a question.
I am building an executable jar with classpath entries in MANIFEST MF file using Java 8 ANT build. I am trying to run the jar in Linux server.
The problem is through the code when i use ResourceBundle , i need to refer to a property file that exists in a physical path in the server and not from within the jar file.
I have added property file with the path in the classpath entries as well, but when too many entries are specified, the MANIFEST MF file splits them into different lines which is not recognized by Linux server.
I have tried many solutions, but this doesnt work. Any help would be appreciated.. Thanks.
"Learning is a Culture where your Eagerness & Curiosity plays a major Role".
You can embed any file in your jar, load it with getResourceAsStream() method and then use it with ResourceBundle. I haven't details right here, but it's an approach I used many times successfully.
And welcome back to the ranch!
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
global solutions you can do at home or in your backyard