I have created a program in Java for my final year project, it has 18 classes so I make a jar file and put all those classes in it & make the jar executable & its working fine. But my problem is that my program uses a database(Mysql) & I have to submit this project in my college, so the faculty can check the project, and I am not sure that they have jre & mysql installed in their pc & if they have they dont have database which my program use. So all I am asking is that is their any way in which they run my program & it will install mysql & jre in their pc & create the database & the table which my program use just like .net does
Hello Nishant Bhargava
i am also having the same query, the difference being, that i am using oracle.
So, i may go for oracle installation, then importing the tables (which i have saved earlier), and then running the application through jar file.
Even i am eager to know, if there is a solution to your problem
Hi Kunal/Nishant, try using install 4j or java web start or inno setup or refer this site http://www.advancedinstaller.com/java.html.
All you have to do is put all package in proper place and you are done like your jar,jre and mysql - these all can be just put as a folder.
As far as tables are concerned use hibernate or java persistence create mechanism in configuration file or alternatively write a script which asks user for permission then inserts all the records for initial configuation.