Question: I want to commit binaries when i create a tag, those binaries are .gitignored and git-add says "Use -f if you really want to add them." So, i wonder if this would be a safe thing to do or not.
I want to use this to checkout binaries on a target computer. The old "system" is to keep old versions in a subdirectory named by the date that version was compiled on, which is a little annoying.

Answer: 
Find your notes.ini file on your computer. Look for two lines: 

```
MailServer=CN=mail01/O=xxx
MailFile=mail\aaa.nsf

```

These are the values that you need in arguments for the `getDatabase()` method. Note that you should double the backslashes in Java because the language will treat them as escapes, or just change them to forward slashes --the Notes API works with either format. You also do not need the 'CN=' and 'O=' as the Notes APIs will assume them if you omit them. But everything else should match exactly what you find in the notes.ini.

Better yet, instead of hard-coding the server and file, use the following code to read the values from notes.ini:

```
String mailServer = session.getEnvironmentString("MailServer",true);
String mailFile = session.getEnvironmentString("MailFile",true);
db = session.getDatabase(mailServer,mailFile);

```

If you do this, you don't have to worry about doubling backslashes or anything else. It will just work, as long as the client is configured correctly and the server and mailfile are accessible on the network. It should also work if your Notes client is configured to work with a local replica of the mail file.
The Problem is that the db ist not found. So try to change the path from the db. if your db is in a folder on the server give the path for the folder in java. Your path variable must have the right format.
In your case for Example it must be
session = NotesFactory.createSession();
db = session.getDatabase("mail01/xxx", "pathToDB/aaa.nsf");