Can anybody please tell some way to access MS Access database from a jar. I am using the following line of code:

ClassLoader.getResource(databaseName);

But its not working. Can anybody please help?

Thanx,
Vishal

I don't think you will be able to run an Access database within a jar. You will need to unpack it to a local directory.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.