Click here to Skip to main content
15,915,863 members
Home / Discussions / Java
   

Java

 
AnswerRe: how to read large 8gb json text file in java program Pin
Richard MacCutchan26-Jan-16 22:35
mveRichard MacCutchan26-Jan-16 22:35 
AnswerRe: how to read large 8gb json text file in java program Pin
markkuk27-Jan-16 1:43
markkuk27-Jan-16 1:43 
QuestionHow to using jena lib with rdf for semantic web. Pin
Fatih Khoirul Umam19-Jan-16 14:14
Fatih Khoirul Umam19-Jan-16 14:14 
SuggestionRe: How to using jena lib with rdf for semantic web. Pin
Richard MacCutchan19-Jan-16 23:15
mveRichard MacCutchan19-Jan-16 23:15 
QuestionAs regards the voice chat in spark im. Pin
superman_kgy16-Jan-16 4:41
superman_kgy16-Jan-16 4:41 
AnswerRe: As regards the voice chat in spark im. Pin
Richard MacCutchan16-Jan-16 4:44
mveRichard MacCutchan16-Jan-16 4:44 
Questionhow to calculate 4 year degree completed data in resume Pin
Member 1216598516-Jan-16 0:34
Member 1216598516-Jan-16 0:34 
AnswerRe: how to calculate 4 year degree completed data in resume Pin
Peter Leow16-Jan-16 0:50
professionalPeter Leow16-Jan-16 0:50 
AnswerRe: how to calculate 4 year degree completed data in resume Pin
Richard MacCutchan16-Jan-16 2:33
mveRichard MacCutchan16-Jan-16 2:33 
Questionprint jPanel Pin
Member 122400217-Jan-16 23:27
Member 122400217-Jan-16 23:27 
AnswerRe: print jPanel Pin
Richard MacCutchan8-Jan-16 1:17
mveRichard MacCutchan8-Jan-16 1:17 
Questionmini game in java Pin
Member 113848203-Jan-16 20:20
Member 113848203-Jan-16 20:20 
AnswerRe: mini game in java Pin
Richard MacCutchan3-Jan-16 22:04
mveRichard MacCutchan3-Jan-16 22:04 
QuestionHow to fix the intervals on y-axis using java. Pin
Member 1223574229-Dec-15 22:21
Member 1223574229-Dec-15 22:21 
QuestionRe: How to fix the intervals on y-axis using java. Pin
Richard MacCutchan29-Dec-15 22:36
mveRichard MacCutchan29-Dec-15 22:36 
QuestionJava sqlite connection error Pin
rafiullah_Omar28-Dec-15 21:56
rafiullah_Omar28-Dec-15 21:56 
SuggestionRe: Java sqlite connection error Pin
Richard MacCutchan28-Dec-15 22:17
mveRichard MacCutchan28-Dec-15 22:17 
GeneralRe: Java sqlite connection error Pin
rafiullah_Omar29-Dec-15 18:19
rafiullah_Omar29-Dec-15 18:19 
GeneralRe: Java sqlite connection error Pin
Richard MacCutchan29-Dec-15 22:19
mveRichard MacCutchan29-Dec-15 22:19 
A couple of things first in the following code:
Java
String query="Insert into Employee values('"+txtID.getText()+"','"+txtName.getText()+"','"+txtFName.getText()+"','"+txtEmail.getText()+"')";
try{
    Sqliteconn.sqliteStmt().execute(query);
}

Do not use string concatenation in this way to create SQL statements, it leaves your code vulnerable to SQL injection, and the corruption or destruction of your database. Use properly constructed parameterised statements.
Also you should split the execute statement into two parts for easier debugging.

As to your error, you need to establish why the database is not writable by your program. Do you have permission to write in the folder where the database is stored?
GeneralRe: Java sqlite connection error Pin
rafiullah_Omar29-Dec-15 22:56
rafiullah_Omar29-Dec-15 22:56 
GeneralRe: Java sqlite connection error Pin
Richard MacCutchan29-Dec-15 23:16
mveRichard MacCutchan29-Dec-15 23:16 
AnswerRe: Java sqlite connection error Pin
rah_sin28-Dec-15 22:21
professionalrah_sin28-Dec-15 22:21 
GeneralRe: Java sqlite connection error Pin
rafiullah_Omar29-Dec-15 18:08
rafiullah_Omar29-Dec-15 18:08 
GeneralRe: Java sqlite connection error Pin
jschell30-Dec-15 7:10
jschell30-Dec-15 7:10 
GeneralRe: Java sqlite connection error Pin
rafiullah_Omar31-Dec-15 7:32
rafiullah_Omar31-Dec-15 7:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.