Hello Everyone,
I have two questions regarding property files. Hope you will answer these questions. I have searched thoroughly and havent been able to find the solution.

First Question:
I have all my java packages in a directory. I run the project from the command line prompt by assigning a property like java -d key=value class
But i now want to create a jar executable file. How do i accomplish this? Do i need to create a property file? If so how to do that and read that file so that the property is assigned when executin the project.

Second Question:
I want to put a property file in a jar file and read it from the source file.Do i need to use class.getResourceStream() for that. I am throughly confused here.

Kindly help me,
Thanks a lot for your help,