Win a copy of Head First Go this week in the Go forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

How to add a database to my NetBeans Project when making a setup  RSS feed

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have completed an assignment for my university in which I had to make a Java NetBeans project. My project is now completed but now I have to make a setup of my NetBeans project and give the university the setup file, only.

My question is, the software I made has a database attached to it, meaning the purpose of the software is to be used with the database. Values must be saved in the database, deleted from the database etc.. I have used MySQL database connections with the JDBC driver

I have used netbeans installed inno setup to make the exe file and setup file respectively. Once I make the setup and run the setup, the application works, ON MY COMPUTER. The computer which made the software. But once I take it to a computer in which MySQL was not installed, the setup installed, but the software did not
verify the user creditials in the database.

I am a beginner to Java so it would be appreciated if the solution were explained as simply as possible.

 
Marshal
Posts: 63479
207
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Obviously you would have to install MySQL before you can use it.
 
anotida Maditsha
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ campbell, thank you. l did it and works well previously l thought if would be possible to include sql files within the jar folder. l would recommend your suggestion.
 
Campbell Ritchie
Marshal
Posts: 63479
207
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
Ranch Hand
Posts: 310
18
Linux MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did your assignment require to use MySQL? If not, in your future projects you can use SQLite instead. It's a database system that does not require to have any external applications (servers) installed. The database is stored in a single file that you distribute together with other application files. By using SQLite you have a portable database that can be used on any computer.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Andrew Polansky wrote:Did your assignment require to use MySQL? If not, in your future projects you can use SQLite instead. It's a database system that does not require to have any external applications (servers) installed. The database is stored in a single file that you distribute together with other application files. By using SQLite you have a portable database that can be used on any computer.






Hello sir, Is it necessary to install any sqlite connector software at client side when we use sqlite database instead of mysql database?
 
Amit Aryavir
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Amit Aryavir wrote:

Andrew Polansky wrote:Did your assignment require to use MySQL? If not, in your future projects you can use SQLite instead. It's a database system that does not require to have any external applications (servers) installed. The database is stored in a single file that you distribute together with other application files. By using SQLite you have a portable database that can be used on any computer.






Hello sir, Is it necessary to install any sqlite connector software at client side when we use sqlite database instead of mysql database?

 
The moustache of a titan! The ad of a flea:
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!