java.sql.SQLException Path to 'path' does not exist -
i writing because created simple login gui
app test sqlite
database student of database systems , new it, used java through eclipse, whenever run application message
java.sql.sqlexception path c:user//path not exist
i have searched lot on google couldn't find solution there similar question on stackoverflow there not enough answer related problem, want know how change code make application work , connect database?
any appreciated.thanks
here code:
package dbms; import java.sql.*; import javax.swing.*; public class dbconnection { connection conn = null; public static connection dbconnector(){ try{ class.forname("org.sqlite.jdbc"); connection conn = drivermanager.getconnection("jdbc:sqlite:c:\\users\\chusm\\workspace\\dbms\\sqlite\\dbms.sqlite"); joptionpane.showmessagedialog(null, "connection successful!!!"); return conn; } catch(exception e){ joptionpane.showmessagedialog(null, e); return null; } } }
it looks you've got weird whitespace action going on in url (between "jdbc:sqlite" , "c:"
please copy paste exact code in project , run (i removed weird whitespace, rest code)
package dbms; import javax.swing.*; import java.io.file; import java.sql.connection; import java.sql.drivermanager; public class stackoverflowexample { connection conn = null; public static connection dbconnector() { try { class.forname("org.sqlite.jdbc"); connection conn = drivermanager.getconnection("jdbc:sqlite:c:\\users\\chusm\\workspace\\dbms\\sqlite\\dbms.sqlite"); joptionpane.showmessagedialog(null, "connection successful!!!"); return conn; } catch (exception e) { joptionpane.showmessagedialog(null, e); return null; } } public static void main(string[] args) { connection connection = dbconnector(); } }
Java.Sql.Sqlexception Path To Path Does Not Exist - >>>>> Download Now
ReplyDelete>>>>> Download Full
Java.Sql.Sqlexception Path To Path Does Not Exist - >>>>> Download LINK
>>>>> Download Now
Java.Sql.Sqlexception Path To Path Does Not Exist - >>>>> Download Full
>>>>> Download LINK dV