Win a copy of Hands On Software Engineering with Python this week in the Jython/Python 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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: 62214
193
  • 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: 62214
193
  • 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: 1
  • 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?
 
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!