I have a JavaFX 8 application and I am creatin an .exe application bundle to distribute the application to windows users. I am able to create an exe with SQLite as back end following here JavaFX 2 Tutorial - Part 7: Deployment with e(fx)clipse
Now I want to change my whole database to MySQL to increase performance. How can I bind MySQL with deployment package so that MySQL automatically get installed and database created in it. I have googled a lot and still i couldn't find a solution.Even in the above link,author suggested to post the question in SO.
In the interest of completeness, I am using Oracle JDK 1.8.0_45,Inno Setup 5 and Eclipse as my IDE.
Any help would me much appreciated. Thanks....
Related
Perhaps I pop this question to early as Openshift v3 is still in preview, nevertheless there might be a solution to my problem that I don't see :).
I'm taking my first steps in building a java Play framework app and chose Openshift as my hosting platform. I just was able to get my app + mysql db working on Openshift v2 as they released v3 preview and got notice v2 will eventually disappear.
In the new images/templates there is still no Java Play version showing and no 'do it yourself cartridge' way.
Any hints or 'tutorial' links are much appreciated :).
Thanks and kind regards!
Erik
You have two options here.
SBT Native Packager
First option would be using the SBT Native Packager SBT builder to create your Docker images (either manually or using something like Jenkins). Out of the box you should be able to run sbt docker:publishLocal and get a local docker image which you can then push to a Docker repo. You can then launch it in openshift with oc new-app <docker repo>/<docker image>:<image version>.
Down side to this is that you aren't really taking advantage of OpenShift fully since your images are being built elsewhere. But it might fit well with your current development flow.
Upside is that your docker images will be quite small. SBT does a good job of packaging up all the dependencies.
Source to Image
Second option would be to create your own source to image builder that knows how to build sbt/play projects. This is the path my team has taken. You can take a look at our sbt builder for reference but its still beta quality at best.
Downside to this process is that all your source is included in the image so its a big larger. Also no one supports this builder so if you have bugs you are on your own.
Upside is that OpenShift will build your images and you will see your build status inside the OpenShift web console.
Notes
With OpenShift Origin 1.3.0 you will also get access to the Jenkins pipeline. This can make either of the two above scenarios easier. You end up with a cool web interface that looks like this:
Hopefully RedHat will support sbt natively at some point but for now one of these two flows should work for you.
For everyone looking for an answer to my own question, here is how I got a Play app running on Openshift (own installation).
First of all, a big thank you #PatrickTescher. His answer pointed me in the right direction.
I did not yet succeed in getting a docker build by activator to work in Openshift (guessing it has to do with running under root), but I have gotten to the point where I have a Source to Image build running on my own Openshift Cluster. This approach is not yet possible with the online developer preview of Openshift. By all the reading I have done so far, I agree with Patrick to say this is the best approach.
By diving into the following links, you should get up and running:
Installing docker on a Windows vm: https://docs.docker.com/toolbox/overview/
Installing your own Openshift Cluster: https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md#windows-with-docker-toolbox (in addition: https://github.com/openshift/origin/issues/11277)
Get a s2i image up and running: https://github.com/redhat-cop/containers-quickstarts/tree/master/s2i-play
In the last link you can change registry.access.redhat.com/rhel7.2 by registry.centos.org/centos/centos:latest (rhel needs certification, centos is the free community equivalent)
I would like to use JavaFX's web browser in an application I am developing for a client. The problem is my client's server runs on a JDK 6 environment and it has a lot of burocracy and paper to ask him to either update Java SDK or to install JavaFX SDK as the Oracle's guide suggests. So I would like to know if there's a way to import JavaFX JAR's into my project instead of having to install it. Thanks a lot.
I have an application written by Java in Ecclipse (Kepler), unsuccesfully tried to run in Oracle JDeveloper: especially during running it comes to prompt-input data, but is being unable to move on. What can I do to fix it?
You need to enable user input in JDeveloper - this might help:
https://blogs.oracle.com/shay/entry/enabling_user_input_when_runni
I am building a simple desktop application with Java Swing for the front end
and use the HyperSQL DB as the database system. I am using the Netbeans 7
IDE to develop the system.
Is it possible to integrate the HSQLDB into the Netbeans IDE
and then be able to connect the application interface to the
database?
Will be happy to have a tutorial or article about this.
Create a library entry for your database, as shown here for H2. Open the Window > Services > Database panel to establish properties for a connection and examine the available schemata.
Trying to run basic java application (backbone.js and jax-rs) I was pleasantly surprised that modifying js or html file in src/main does not require application rebuild. Just refreshing it in browser is enough to update the application.
However changing java file, I can't find how to make application be updated locally.
Using Eclipse it's automatically compiled into target/classes, however applicaiton is not updated in browser. I can't find any bees command to cause update. I don't see compile command also.
Killing running tomcat and 'bees run' makes the trick, but the question is, if instant update is possible in case of basic java web application?
I'm not sure how to do it with a normal Java app. One option would be to use Playframework has this auto-reloading stuff built in, and is supported well on CloudBees. http://wiki.cloudbees.com/bin/view/RUN/Playframework
You need to use something like JavaRebel or Javeleon if you wish to reload Java classes in a running application.