Receiving java.sql.SQLException: out of memory
I got this error message in NetBeans 6.8:
Exception in thread "main" java.sql.SQLException: out of memory
at org.sqlite.DB.throwex(DB.java:288)
at org.sqlite.NativeDB._open(Nat开发者_StackOverflow中文版ive Method)
at org.sqlite.DB.open(DB.java:77)
at org.sqlite.Conn.<init>(Conn.java:88)
at org.sqlite.JDBC.connect(JDBC.java:64)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:207)
I changed my VM options but am still receiving the error. How can I fix this?
Without any code snippet it's hard to give a decent answer. After i googled this exception, it seems that many people faced this problem. Try to remove the drive name (if any) from the JDBC URL this may help.
please make sure, you are using correct URL for the database file.
精彩评论