How do I run someone else's (database-connected) Java NetBeans project on my own laptop? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I run someone else's (database-connected) Java NetBeans project on my own laptop?

For example, if we download someone else's Java NetBeans project (the project is connected to a database), then I run it on my laptop. ⚫ Do I have to create a database and tables? Or is it enough to just create the database? ⚪ The person's project was made a ZIP and uploaded on Google Drive, I downloaded other people's projects from Google Drive 🔴 The problem is that I have never been able to successfully run someone else's Java NetBeans project (which is connected to the database). The thing is I've never been able to successfully run other people's projects on my laptop. ⚫ The person is using XAMPP while I am using laragon, does that matter?

19th Jun 2023, 11:29 PM
Nasywa
1 Answer
+ 2
Have you successfully imported a more simple project that is not connected to a database? You haven't posted any code or details of the project. I am sure the "other person" has documented well their own dependencies and configurations, for example what is the port number for mysql server (I am not sure if there is any difference between XAMPP and Laragon, if there is, the port number could be different). https://netbeans.apache.org/kb/docs/ide/mysql.html Did the "other person" create the zip file through Netbeans export feature? Were all required libraries also included? Most likely you will have to create the table and populate with data in your own system, before the application can use it. Did the "other person" also provide an sql installation script? Or at least did they give a description of their database schema? https://stackoverflow.com/questions/22919220/sharing-a-netbeans-project https://www.tutorialsfield.com/how-to-connect-mysql-database-in-java-using-netbeans/
20th Jun 2023, 4:44 AM
Tibor Santa
Tibor Santa - avatar