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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:53:24+00:00 2026-05-13T13:53:24+00:00

I’ve recently started my first programming job, and what I need to do as

  • 0

I’ve recently started my first programming job, and what I need to do as my main project is to create a program for simulating diesel generator behaviour.

I’m creating this program using Java, which I’ve never used before (all of my limited experience is with C++), and the first problem I need to overcome is to create a database to store the necessary data that will act as input to the simulator.

This database problem strikes me as something that has, in general, been done many times before. Could anyone get me started on the right track towards achieving this with suggestions on what to use to first create the database, and then what to use to access it with the simulator? In regards to the latter, I’ve been reading over the java.sql package, and it seems as though it would suit my purposes. What do you think?

Thanks very much in advance.

  • 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-13T13:53:25+00:00Added an answer on May 13, 2026 at 1:53 pm

    There are 2 parts to your question: how to create a database, and how to access it from your code.

    Part 1: there are several light-weight database projects that you can choose from. Check out HSQLDB, it’s quite popular and user-friendly. You’ll have to download it, and you can use the built-in tools to create and populate your database with data.

    Part 2: The JDBC standard defines how a Java program connects to the database. The tutorial (as suggested by amarillion) is a good place to start. You’ll need to put the database’s JDBC driver in your classpath, and you’ll be able to connect to the DB from your code. Note that parts of the process (such as the driver and the connection string) are specific for the database you choose (meaning, the connection string for HSQLDB is different from the one for MySQL).

    However, JDBC is rather low-level: you have to work with objects that represent connections and SQL statements (the ones you noticed in java.sql). This is an excellent place to start, but later on, as your code grows, you might want to consider using an O/R mapping tool. It will make your life easier, but it has a learning curve. The most popular ORM for Java is Hibernate.

    Good luck!

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I need to clean up various Word 'smart' characters in user input, including but
I need a function that will clean a strings' special characters. I do NOT
I have thousands of HTML files to process using Groovy/Java and I need to
I'm trying to create an if statement in PHP that prevents a single post

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.