Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm developing a simple family tree application (using Jung). One of the requirement is the ability to save the graph or data that I generated.
I already looked up on Google, but most of them offer website/online kind of database. I want to be able to save the database on the desktop, and load from the same database file.
What do I need to look up for this purpose?
Look at SQLite, HSQL DB or Apache Derby. All of them should suit your recommodations, so the choice is up to you.
Or you can always store your data into file like XML or property file. It depends how big your app is going to be and what kind of data are you trying to save.
Look at embeddable databases. The good choice for you will be JavaDB http://www.oracle.com/technetwork/java/javadb/overview/index.html which is included in JDK.
SQLite
XML
Your own format to store serialized objects
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 days ago.
Improve this question
Its been a while since I used Java and persistence, but it was a great way to manage tables, queries, and objects.
I have an application that doesn't call for a full-blown database server (I want to share a database file on a cloud service like Google Drive with a few users, one of which will be doing most of the database updates) so I settled on SQLite.
I started with persistence (because that's what I remember) and immediately fell down a rabbit hole trying to get it to work with modern Java. I tried ormlite, but even their examples don't work out of the box. I don't mind fooling with them to get them to work, but I have to believe there is a modern database interface (like persistence or what ormlite appears to do) that works with Java, is current, and has some working examples.
Everything I find seems to be many years old :-(
Any suggestions?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I was looking for any library or sources which helps me to read MDX dictionary files in Java, I have found some resources already such as mdict-android-opensource but it does not have its implantations to how read mdx database files. Does any one knows a good source about these files and possible libraries which could be used for it?
Thanks very much.
As far as I know, mdx is not a 'database'. database can be something like a file system, while mdx is just a set of binary data stored on the disk. However they uses similar techniques: Index and Binary search.
mdict-android-opensource only opensourced it's UI side.
Here's my implementation to parse and query mdx files: mdict-java ,it's under the Apache license.
and you can also try my application on the play store.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to develop application.which is offline(runs on single pc).Which database i should use so that when I create exe of my project it will automatically included in it.
It sounds like you're looking for an embedded database. Here is a thread on Java embedded databases. I use Apache Derby, mostly because it's easy to use with NetBeans.
You can look to the H2 database, no db server is needed!
http://www.h2database.com/html/main.html
You can use MS-Access. That works totally offline and you can include it in your project. It is also easy to work with MS-Access & Java.
Hope this helps.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking to make a Java based application that also uses an external MySQL database. Does anyone know of some good resources that I could read up on? I am very interested to give this a shot!
Thanks in advance!
The standard API to use databases from Java is JDBC. See the JDBC Tutorial to learn how to use it.
You'll need a JDBC driver to connect to MySQL. You can get that at the MySQL website: Connector/J download.
MySQL provides a JDBC driver, so you can use pretty much any Java database tutorial to learn how to do it.
You can also use all of the usual candidates for mapping DB resources to Java objects (Hibernate, EclipseLink, ...).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm using Berkeley DB Java edition, via the DPL interface.
I want to ask if someone knows about any GUI library that could make it easy to browse the data saved in the database.
I know that BDB documentation says that the metadata about the stored entities is not saved in any place and therefore only the person who have written the data can know what are the types of the classes that would be returned from there. That's why I'm searching for a library (not a complete program) that would be included to the main project and so it would know the types of my classes and would be able to show the data correctly.
p.s. I've found this bdb-browser but it seems like a dead project.
Update:
So far I've found a GUI that shows the statistics gathered for the BDB via the JMX. Here is how to use it: http://www.oracle.com/technology/documentation/berkeley-db/je/jconsole/JConsole-plugin.html
Still searching for data browser...
You could try DbVisualizer.
DbVisualizer doesn't directly support the Berkeley DB, but does provide JDBC drivers for many databases,
You can use Execute Query to connect Berkeley DB. Its is a free software. You can get the distribution from http://executequery.org
Here is an extremely simple browser. Needs to be compiled though.
https://github.com/ferruccio/bdbvu
I did a quick search and didn't find anything.
I don't think you're going to have a lot of luck looking for a data browser, because the format of the value in each database entry is going to be variable. For example, it might be primitive data, data written out by the default Java serialization, or a custom format for an instance of a class which implements Externalizable.