Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. How to make a database that is integrated within the application?

How to make a database that is integrated within the application?

Scheduled Pinned Locked Moved Java
databasequestioncsharpjavaphp
12 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    extranghero
    wrote on last edited by
    #1

    I'm fairly new to programming especially ones that use database. I can make software that use database but only with .NET and using MySql with XAMPP. However I'm still trying to figure out how to do that in Java because I'm currently learning the language. However I saw this application which is an application for saving solve times for rubik's cube speedsolves. The software is called Prisma Puzzle Timer. [Download] The software generates a file with the .db extension on first run in the same directory of the .jar file. I assume this is the database. My question is how can this be done? And what type of database is it? (the .db file extension) Although the said software is open source, I don't have enough knowledge to understand the source to even find where the database creation is implemented (though I'm still trying to read through the source and I'm still in my learning phase in Java programming).

    L A U 3 Replies Last reply
    0
    • E extranghero

      I'm fairly new to programming especially ones that use database. I can make software that use database but only with .NET and using MySql with XAMPP. However I'm still trying to figure out how to do that in Java because I'm currently learning the language. However I saw this application which is an application for saving solve times for rubik's cube speedsolves. The software is called Prisma Puzzle Timer. [Download] The software generates a file with the .db extension on first run in the same directory of the .jar file. I assume this is the database. My question is how can this be done? And what type of database is it? (the .db file extension) Although the said software is open source, I don't have enough knowledge to understand the source to even find where the database creation is implemented (though I'm still trying to read through the source and I'm still in my learning phase in Java programming).

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The .db extension on the file tells us nothing, because it depends on the program that is generating it as to what format it takes. If you are interested in using databases from Java, and Java itself, then your time would be better spent studying the Java Tutorials[^].

      E 1 Reply Last reply
      0
      • E extranghero

        I'm fairly new to programming especially ones that use database. I can make software that use database but only with .NET and using MySql with XAMPP. However I'm still trying to figure out how to do that in Java because I'm currently learning the language. However I saw this application which is an application for saving solve times for rubik's cube speedsolves. The software is called Prisma Puzzle Timer. [Download] The software generates a file with the .db extension on first run in the same directory of the .jar file. I assume this is the database. My question is how can this be done? And what type of database is it? (the .db file extension) Although the said software is open source, I don't have enough knowledge to understand the source to even find where the database creation is implemented (though I'm still trying to read through the source and I'm still in my learning phase in Java programming).

        A Offline
        A Offline
        Anton Koekemoer
        wrote on last edited by
        #3

        I think what you mean is to have an embedded database in your application. Well in that case, you have a number of choices. I would suggest you look at [Hypersonic SQL^]. It is lightweight and quite mature. Another option is to look at [Sqlite^]. I have not used it in a Java project before, but it is quite a nice and fast little database.

        J E G 3 Replies Last reply
        0
        • A Anton Koekemoer

          I think what you mean is to have an embedded database in your application. Well in that case, you have a number of choices. I would suggest you look at [Hypersonic SQL^]. It is lightweight and quite mature. Another option is to look at [Sqlite^]. I have not used it in a Java project before, but it is quite a nice and fast little database.

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          Derby is another choice. Might be better for someone learning java.

          T E 2 Replies Last reply
          0
          • J jschell

            Derby is another choice. Might be better for someone learning java.

            T Offline
            T Offline
            TorstenH
            wrote on last edited by
            #5

            I second that, Derby works really good - and it's free: http://db.apache.org/derby/[^]

            regards Torsten I never finish anyth...

            1 Reply Last reply
            0
            • L Lost User

              The .db extension on the file tells us nothing, because it depends on the program that is generating it as to what format it takes. If you are interested in using databases from Java, and Java itself, then your time would be better spent studying the Java Tutorials[^].

              E Offline
              E Offline
              extranghero
              wrote on last edited by
              #6

              Ah, yes. I just got familiar with that file extension meaning nothing. I actually tried The Java Tutorials but I had a hard time understanding everything there. Perhaps I didn't had enough programming experience yet because I think they assume you've had C++ knowledge already. So I'm currently learning Java with other tutorials. Anyway I'm familiar with MySql.

              L 1 Reply Last reply
              0
              • A Anton Koekemoer

                I think what you mean is to have an embedded database in your application. Well in that case, you have a number of choices. I would suggest you look at [Hypersonic SQL^]. It is lightweight and quite mature. Another option is to look at [Sqlite^]. I have not used it in a Java project before, but it is quite a nice and fast little database.

                E Offline
                E Offline
                extranghero
                wrote on last edited by
                #7

                Thanks! I will try to have a look at HyperSonic SQL. Hope this will work for me.

                1 Reply Last reply
                0
                • J jschell

                  Derby is another choice. Might be better for someone learning java.

                  E Offline
                  E Offline
                  extranghero
                  wrote on last edited by
                  #8

                  Alright I'll also read about this. Thanks. :thumbsup:

                  1 Reply Last reply
                  0
                  • E extranghero

                    Ah, yes. I just got familiar with that file extension meaning nothing. I actually tried The Java Tutorials but I had a hard time understanding everything there. Perhaps I didn't had enough programming experience yet because I think they assume you've had C++ knowledge already. So I'm currently learning Java with other tutorials. Anyway I'm familiar with MySql.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    extranghero wrote:

                    I had a hard time understanding everything there. Perhaps I didn't had enough programming experience yet because I think they assume you've had C++ knowledge already.

                    No, you should be able to work through those tutorials without any previous programming experience. The introduction starts from the very basic concepts.

                    1 Reply Last reply
                    0
                    • E extranghero

                      I'm fairly new to programming especially ones that use database. I can make software that use database but only with .NET and using MySql with XAMPP. However I'm still trying to figure out how to do that in Java because I'm currently learning the language. However I saw this application which is an application for saving solve times for rubik's cube speedsolves. The software is called Prisma Puzzle Timer. [Download] The software generates a file with the .db extension on first run in the same directory of the .jar file. I assume this is the database. My question is how can this be done? And what type of database is it? (the .db file extension) Although the said software is open source, I don't have enough knowledge to understand the source to even find where the database creation is implemented (though I'm still trying to read through the source and I'm still in my learning phase in Java programming).

                      U Offline
                      U Offline
                      User 10900564
                      wrote on last edited by
                      #10

                      Hello Dear Friend, I'm also having the same question. When you got to know the answer or code for this please do share it with me.

                      Gokul Gawande

                      E 1 Reply Last reply
                      0
                      • U User 10900564

                        Hello Dear Friend, I'm also having the same question. When you got to know the answer or code for this please do share it with me.

                        Gokul Gawande

                        E Offline
                        E Offline
                        extranghero
                        wrote on last edited by
                        #11

                        Well I think I'll settle with HyperSQL. I downloaded it. Comes with a nice documentation and that's what I'm reading now to learn it. I discovered the embedded database I saw on the example on my original post was something called H2. I think it's similar.

                        1 Reply Last reply
                        0
                        • A Anton Koekemoer

                          I think what you mean is to have an embedded database in your application. Well in that case, you have a number of choices. I would suggest you look at [Hypersonic SQL^]. It is lightweight and quite mature. Another option is to look at [Sqlite^]. I have not used it in a Java project before, but it is quite a nice and fast little database.

                          G Offline
                          G Offline
                          Geoffrey Moir
                          wrote on last edited by
                          #12

                          A great thing about SQLite is the licence agreement which includes the text "Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original SQLite code, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means." Nice to have that kind of freedom.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups