Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6814691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:43:07+00:00 2026-05-26T20:43:07+00:00

I have started playing around with Berkeley DB. This one is really interesting, but

  • 0

I have started playing around with Berkeley DB. This one is really interesting, but I am facing one problem.
While creating the Environment we create it like this –

Environment env = new Environment(new File("./bdb"), envConfig);

It initially threw an exception saying “bdb” location was not found. I created the location and it all worked.

My question is how would I set up berkeley DB to create this directory for me if it does not exist. I actually checked at the config method SetAllowCreate(boolean flag) .. but its functionality is different.

Any help would be appreciated.
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:43:08+00:00Added an answer on May 26, 2026 at 8:43 pm

    I actually ended up doing something like this (not sure whether it is right solution but it works)

    boolean x = new file("./bdb.data").mkdir();
    Environment env = new Environment(new File("./bdb"), envConfig);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have started playing around with db4o but quite soon I have run into
I've started playing around with Orchard CMS for one of my websites and have
I just started playing around with JSON and I have created this example. var
I've just started playing around with Android Licensing and I ran into this problem.
I am playing around with MVC and have started setting up an existing site
I've just started playing around with android, so pardon me if this is a
I just started playing around with MSBuild this evening and am porting an nAnt
I´ve just started playing around with Java and Hibernate and have gotten an application
I have recently started playing around with iOS development and have got most of
Hi I have been playing around with MDX and need some very high-level getting-started

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.