• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Installing Java Program

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Ranch Hand
Posts: 157
1
Android MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 76408
365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And welcome to the Ranch

If you have used MySQL you should ask the college authorities what to do. You would obviously have to provide them with the .sql files to create the database.
 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply harshvardhan ojha, Campbell Ritchie.

I am using hibernate. I am thinking of creating a empty backup (empty tables), and give the same to the client, and then import the tables
 
I think I'll just lie down here for a second. And ponder this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic