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 8362499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:57:16+00:00 2026-06-09T11:57:16+00:00

as I was searching for a simple embedded JPA-capable DB to be used in

  • 0

as I was searching for a simple embedded JPA-capable DB to be used in a Java Desktop-Application, I found that Apache Derby / Java DB is a pretty common way to do such things.

I already found that Java DB comes per default with every JRE/JDK-installation since 1.6.

But when jumping into the tutorials there are quite a few steps to install derby…

With ignoring those steps and just trying someting like:

public class Main {
  public static void main(String[] args) throws ClassNotFoundException {
    Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
  }
}

The following exception is thrown:

Exception in thread "main" java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver

That brings me to my question:

Do I need the end-user to set up any enviroment-variables or something like that? If I only want to ship one JAR (or at least only one folder containing everything what is needed to run my desktop-application) is derby still the right thing to lern more about, or is it a dead end and I should look for SQLite-Libs or something?

  • 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-06-09T11:57:18+00:00Added an answer on June 9, 2026 at 11:57 am

    You shouldn’t need any environment variables if you include the method call that you gave. You do however need to make sure that the JDBC drivers are in your classpath. The simplest way to do this is by setting the classpath in your JAR’s manifest file

    I recently asked a related question and was directed to check out H2 and HSQLDB. I am working with HSQLDB at the moment and it seems to be fitting my needs which are very similar to your own. I hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a simple app engine application that utilize the geo-searching proximity_fetch.
I'm searching for the name of this simple tree, that is a pretty straightforward
Well, I was searching for a simple collision detection function for as3, I found
I am searching a simple addslashes function for a program that must save in
searching a photo by dominant colors using mysql is quite simple. assuming that the
Guess this is pretty simple, but searching didn't help... I want an ExpandableListView, where
this is a simple query about the searching in vim editor. consider that i
I'm searching for free and simple DAO generator for java (it needs to create
i was searching for a simple solution that i can use in sorting a
I am searching for a simple and free ASP.NET C# shoutbox/chat application , so

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.