Simplest Distribution Method for Java Front-end Database Application? [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 10 months ago.
Improve this question
I would like to create a front-end application in Java to query a Microsoft SQL database. This application will need to be distributed to around 20 computers and must be extremely user friendly. I'm hoping someone can explain two things:
The simplest way to distribute this application across multiple windows machines. I.e.least amount of software installation and maintenance.
Explain how once distributed, the application might be able to connect to the database upon launch, as opposed to authenticating a user each time.
So far I plan to use Java, JavaFX, & Microsoft JDBC driver. Open to new ideas though, cheers in advance.

For distribution, I can think of a couple of choices:
IF you are sure that each of you 20 computers has a JVM installed, you could package the app as a "FatJar", a single Jar file with all of the dependencies in it. There are plugins for this in both Maven and Gradle.
If you don't have a JVM on these computers, and don't want to have to install one, you could create a native application using GraalVM and Gluon.
Take a look at https://gluonhq.com/create-native-javafx-applications-using-graalvm-22-builds-from-gluon
If you want to connect to the database without user intervention, see sql server login credential for jdbc

Related

How to share a Java Project with a JDBC and a SQL connection? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed yesterday.
Improve this question
I made a french conjugator GUI using Java. I also created a SQL Database which had all the french verbs that users could pick and choose using SQL Workbench and connected it to the project.
When I tried to share it with my friends, they were able to access the Java project and see the various GUI elements, but none of the conjugations came up. I shared the database as well exported in the .sql format.
What can I do to fix this problem?
Probably you are using a data base like MySql or PostgreSQL .., like that all of your friends need to install this data base into their machine and have the same configurations as yours.
The first solution (simple) is to use an internal data base like : JavaDB,
SqlLite .
The second solution is to put a script that will be run within the
first execution of you Desktop application / the installation of your
application, this script will downloed the DB use and configure it,
create the tables and do the Job.

Is it possible to register a Domino Server with the Java API or C API? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
We are well on our way to Dockerizing Domino. In fact, we have a Domino Docker running in IBM Cloud (bluemix) that replicates with on prem.
What we want to be able to do is automate the standing up of a Domino server.
In our script, we are thinking of calling a custom program we can build that will use either the C API or Java API to register a new server, deploy a XPages (JSF) application to it, and start the server, replicate over the common user directory (names.nsf) from the master server.
Currently, we started the Domino Container in CentOS in listener mode. We registered the server on prem, and copied over a bunch of files (server.id is one of them) and edited confirmation to manually configure it. We want to automate this process.
Any insights on how this can be better accomplished? any api references you can share to get us most of the way there?
Yes, this is possible. We have done this in Lotusscript using LS2CAPI.
As we are accesing API functions, this is also possible using Java. Not sure, if domino-jna already includes the needed Api calls, but this can be implemented. Take a look at github for Karsten Lehmann and domino-jna.
domino-jna can be used from XPages as well.

Architecture of a simple JAVA EE app [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I was given the task - to create a simple JAVA EE web-application that have the following functionality:
It had an index page
I choose an algorithm and enter parameters for it on index page
Depending on chosen algorithm a statistical .csv file will be processed on its own way.
After processing the .csv file in compliance with entered parameters and chosen algorithm I get a table where I can find processed data.
I know that it's a very simple application but I don't know what to do - architecture, what kind of web layer and etc
If you install Apache Tomcat on your computer, and then run it, you will find a lot of simple examples, many of which will come close to what your are asking. Plus, once you install it, you have a server on which to run your new code. I would recommend you start there.
Apache Tomcat
I would say that if you really want simplicity, you go with just Servlets for the server-side processing, and JSP pages for the HTML views. I know, it's "vintage" almost, but will get you running in no time and without the need for any special "architecture" or framework besides the servlets API.
You can build your app as a War file with the tool of your choice and deploy it in a Tomcat server and that's it.

Small java application with local database? Which database to use? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I want to create a small java application which allows to connect to a database and exchange information.
It should be possible to start the DB via Java, so I don't need anything but my application to work with the DB. (Not like XAMPP where I need the XAMPP menu to start the DB server for example)
What DB should I use for such a project?
The JDK comes bundled with Java DB which is a fully functional RDBMS that is suited for small scale apps and small scale databases.
Why dont you try H2 DB, its pretty light weight and suited for small applications. If you want to move the same application at a later stage to any RDBMS, you can take mysql.
If you just want to experiment with your small application use Java DB (Previously known as Derby). If you are using JDK 7 then it comes bundled with the JDK. For older versions of JDK you have to download the Derby database from
https://db.apache.org/derby/derby_downloads.html

Cloudant sync for couchdb; how to port android to J2SE [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Am very interested in using cloudant's new sync library for iOS and Android. However, I'd also like like comparable support for desktop via J2SE. I realize this may be possible simply by bundling a local couchdb instance with your J2SE app & then using a wrapper like ektorp. However, I would prefer something a little lighter - e.g. cloudant sync runs atop of a local SQLite db; rather than on top of local couchdb.
I've loaded the code into eclipse as a J2SE project however have about 40 errors to resolve; most of which are due to dependancies on android.database.sqlite.SQLiteDatabase. Un suprisingly, copying the classes in question from the Android SDK didn't work.
I would appreciate any advice / pointers on a port, or alternative.
Thanks
At this point, as you discovered, while we choose the right data access class to use based on the runtime environment -- i.e., sqlite4java or the Android SQL classes -- the library requires the Android classes to be in the classpath even when running on a desktop.
We are hoping to address this with better dependency injection or build processes in the near future, and I'll try to keep this answer up to date.

Categories