> "You can't open a Database with a duplicatesAllowed configuration of true if the underlying database was created with a duplicatesAllowedSetting of false"
This means you created the database (opened it for the first time) without calling setSortedDuplicates(true). You can't change this setting for an existing database. If you're just testing, remove your environment (delete all the .jdb files) and start over. If this is a production issue, you'll have to remove the database with Environment.removeDatabase.