Can't connect after build..
I am using NetBeans 6.8. i have connected to database. I have completed my task. When i run the program under NetBeans, the program can communicate with the database. But after i build the program, my app can't communicate.
I have noticed this. When i manually connect to database thru NetBeans (right click to JavaDB node and click connect) the app runs well. But when i disconnect, it doesnt connect itself from coding.
This is what my code does after clicking the connection button:
I am also not sure what driver to use, embedded or client..? database will be reached locally only.
con = DriverManager.getConnection("jdbc:derby://localhost:1527/SLearning","Learn","Learn");
stmt = con.createStatement();
do i need to add something else to connect manually.
I hope i made myself clear..