1

I'm new in Java programming so don't hold it against me. I'm trying to include a Maxmind database in my application. I've been using a relative path when working on the project, similar to:

File dbfile = new File("C:\Development\Maxmind GeoIP2 DB\GeoLite2-Country.mmdb");
DatabaseReader dbReader = new DatabaseReader.Builder(dbfile).build();

That works well for local development, however I've been struggling to figure out how to add the database file when I compile the project.

Any ideas on how to do this?

Jose Da Silva
  • 3,536
  • 3
  • 22
  • 34
mr_j
  • 125
  • 1
  • 13

0 Answers0