Deploying Java applications with embedded derby database
|Ruby on Rails (Photo credit: Wikipedia)|
Here is the first innovative application, Dermatology Image Tagger that I made. I believe this would be quite useful to dermatologists for organizing clinical images. Afterwards I made a simple java database application for a colleague. I never explored the deployment of java applications before. I hit google to find useful resources, but found only very few. The one I found most useful was Aparna's blog. Here she succinctly explains how to use the Java embedded derby database. The only thing I had to figure out the hard way was to use the connection string as below to force creation of the database in the working directory. I also added a 'create table' button for initial deployment.
String host = "jdbc:derby:imfdb;create=true";
String uName = "your_username";
String uPass= "your_password";
con = DriverManager.getConnection(host, uName, uPass);
stmt = con.createStatement();
She has also written an very useful article on deploying java desktop applications. I followed her instructions to package all required files into a single executable jar file for Mac and an exe file for windows. I have used this for DIT. Thanks Aparna for making life easy for me!
|Pink in honor of breast cancer awareness programs (Photo credit: beapen)|
So this will be my last post for 2013. Will meet you all again in 2014.