It may be that that's what you want, but as I said, it's not going to happen. If you want to ship a DB file as part of your application's jar file, check out HSQLDB which can access a read-only DB in a jar file through JDBC.
Tell me if its working through first code than why it is not working from second code
Logically, there's no reason why something that works through files should also work through the resource loading mechanism. And in this case, there is a very good reason why it would NOT work, namely that DBs are generally read/write resources, and write access is not possible for resources in jar files. That's rather different from images which are most often read, but not written.
ohk than tell me the way so that i can establish the connection to the ODBC services through the code
You need to ship the MDB file along with the jar file.
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way: