Using the following code
String uri = "file:/paris.db";
System.out.println( "Trying to open [" + uri + "]" );
InputConnection conn = (InputConnection)Connector.open( uri, Connector.READ );
InputStream in = conn.openInputStream();
to open a local db file located in a "res" directory.
I always raise a ConnectionNotFoundException. I've tried file:/res/paris.db and absolute pathname, but it's the same.
I package the res directory in the JAR file using jar ... -C res .