Thank you bro u solved the problem tnx again
rafiullah_Omar
Posts
-
Java sqlite connection error -
Java sqlite connection errorbro it works properly when i open and run it in netbeans but when i create its setup and install and run it , it give the error.
-
Java sqlite connection errorthanks for your reply my database is stored in same folder with project and how to allow the permission of writing?
-
Java sqlite connection errori just want to insert some data there is no more and difficult code connectivity code:
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import javax.swing.JOptionPane;
public class Sqliteconn {
public static Statement sqliteStmt()
{
try{
Class.forName("org.sqlite.JDBC");
Connection conn = DriverManager.getConnection("jdbc:sqlite:B12MSqlite.sqlite");
Statement stmt=conn.createStatement();
return stmt;
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, e);
return null;
}
}}
and insert Button Code:
String query="Insert into Employee values('"+txtID.getText()+"','"+txtName.getText()+"','"+txtFName.getText()+"','"+txtEmail.getText()+"')";
try{
Sqliteconn.sqliteStmt().execute(query);
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, e);
}Erorr messages java.sql.sqlexception attempt to write a readonly database
-
Java sqlite connection errorThen how to fix it
-
Java sqlite connection errorHi everyone i created exe file of a java desktop application which use a sqlite database when i install the project an i run it i give the error of attempt to write a redinly database and sometimes access in denied error how to fix it?