I am currently working on a university project to set up a database and a java GUI for the company I work at.
My idea was to use JavaDB (JDK-integrated Derby) or MySQL as database engine and connect to a Java application that I code using DBMC.
Ideally, both the Database and GUI Java Application would simply be saved on the company's network drive in the same folder, without the need of a permanently running an SQL server or something like that.
So when a user started up the Java application, the database (server) would start up too and close when the Java Application is closed.
I was messing around with Derby Embedded, but found that it was fairly impractical, lacking a useful gui administration tool like MySQL or multi-user access (not the first priority) and accessing it via SQuirreL didn't succeed very well either.
Do you know a better solution to this?
Would it be possible to do this with MySQL for example?
I hope, I explained everything okay.
Related
I created a Java application that accesses a MySQL database (made using MySQL Workbench). I want to create an installer for my application so that other users can use it on other computers, but I can't figure out how to do so.
I tried using Launch4j and Inno Setup Compiler, but when I tried to install the application on another computer it didn't access my database.
After a bit of research, I found out that I (maybe?) have to use a server for my database, but I couldn't figure out what and how to do that.
My questions are:
Do I have to use a server to make my application installable on other computers?
What is the easiest server to use for this task?
PS: I'm very new at programming so please be as explicit as you can :)
I am looking for embedded MySQL for Java. I looked at answers for "Create embedded mysql database"
and found libmysqld but it is for C++, as MySQL itself of course is written in C/C++.
Could not find better for MySQL per se.
Recalling about MariaDB, I quickly found https://github.com/vorburger/MariaDB4j but I am still raising question. Is there better solution for standalone app (that is only one local connection, we never can access that db)
UPDATE: There is no much I know. We should have embed all into one Java executable, but for the developers it should be the same as the MySQL on central server where mySQL native SQL calls are used. So having the same DB for main server and standalone app is supposed to save time developing against different DBs.
I have a very simple web app at the moment (just some static HTML/CSS/JS files and a JAR for the API that connects to a relational database). I would like to be able to have people run it locally on their own computers, instead of in the cloud like how I have it now.
My question is: is there some container framework for Windows/Mac/Linux that can bundle and display my app locally?
I want to have an installer or--better yet--portable ZIP/folder that someone can put on their computer, double-click a startup script, and have this running locally. The idea is that I may have to make different packages for each OS, but I will retain the same frontend, Java, and relational database.
I know of XAMPP for running a portable LAMP stack, but that's about all I could find with relation to a question like this.
EDIT: I should mention that the relational database aspect could potentially be swapped out with something like SQLite.
I am in a situation where I am being asked to make a single WAR file that runs Wordpress. Using Quercus, Tomcat and httpd+mod_rewrite I was able to make a WAR file containing everything except the database, which I ran externally. However, I'm not sure how I might go about removing the dependency upon an external database (and, frankly, this whole endeavor seems like a bad idea to me).
This article describes how Wordpress has been successfully deployed on the Google App Engine and hence without needing MySQL, but this was done using JPA.
Instead of embedding a MySQL instance, if I could use an external MSSQL database connection instead that would be fine too. (This is an old post, but it seems to suggest that real MySQL is the only supported database for Wordpress.) Is the most viable option to attempt to replace each MySQL call in the Wordpress source code to a MSSQL call? Is there some kind of compatibility/translation layer that I could use instead? (I saw this question, but the solution will not work in my case.)
UPDATE: I came across MySQL-JE, but it looks out of date and not quite complete enough (not sure how I would tell Quercus/PHP to communicate with it). Has anyone used it? If so, do you think it would help solve this problem?
Embedded Database
According to this chart, MySQL is not built for embedded use.
I can point you to two pure Java database engines for embedding in a Java app. Both are open-source, free of cost, and under active development. Both have a good pedigree with a long line of database development history behind them.
H2
Derby
WordPress Requires MySQL
According to this WordPress Requirements page, specifically MySQL is required. That's annoying. The main point of SQL is to avoid database-vendor lock-in.
I am studying Information Technology at a local college. I am currently doing a Java project for one of my Modules. We are expected to make a Java application that communicates with a Microsoft Access database. I am working in a group, and all of us are assigned to code separate functions of the software. However, we need to share one database. We are currently using ODBC on our individual computers and are using JDBC to connect to the database on the local machine. What we have thought is to just work on separate Microsoft Access databases and then just combine them later on. But I think that's not the best way. Is there a way that will allow me and my group members to have a centralized database, to which all of us can connect and make our queries? Is this possible by hosting the Microsoft Access database somewhere online, and then connecting to it from inside the Java software. Please help me out, as I have no idea how to get a centralized Microsoft Access database.
If you want to get rid of this by using Microsoft Access is because that's the easiest way out for you and your group to solve this kind of problem but I'd rather suggest you to use the database using a database provided by Java Derby database, it's quite help you to short your code within the server. Maybe I will suggest you to use Netbeans as a GUI and the Derby to control the database.
So what's your core problem is that a programming side or configuration and control within the hosting ? Thanks