Let me tell you I already got the tutorial on how to do this http://db.apache.org/derby/docs/10.3/adminguide/tadminconfig814963.html
But sincerely speaking I did not understood how to do any of the two methods described. Let me tell you my confusions and what I didn't understood and I am developing my project in netbeans.
1) How to set up a properties file(I never worked with them, so really have no idea) and if not required then where to find this derby.properties file and exactly how to enter that string in it.
2) And how to make my java code to execute that propeties file before loading the emebedded or network database drivers.
3) I have my JavaDb installed at C:\Program Files\Sun\JavaDB and in netbeans for my project I added a library refering to this location C:\Program Files\Sun\JavaDB\lib . So if I am done with properties file then will the final packaged jar file of my project along with library files in dist folder be able to start the derby server on any machine.(I mean to ask will it try to look for this location C:\Program Files\Sun\JavaDB\bin as batch file is located here to start)
Can anybody please help me with this?