Out Of Memory error in Eclipse Juno [message #1076361] |
Wed, 31 July 2013 08:54 |
michael m Messages: 3 Registered: July 2013 |
Junior Member |
|
|
Hi guys,
first, I want to ask you sorry for my bad english.
I have a problem with Eclipse Juno.
The error that the software back to me is the following:
Exception in thread "main" java.sql.SQLException: out of memory
at org.sqlite.DB.throwex(DB.java:288)
at org.sqlite.NestedDB._open(NestedDB.java:73)
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(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at ProvaDB1.main(ProvaDB1.java:10)
The line 10, is the line:
Connection conn = DriverManager.getConnection("jdbc:sqlite:db.db");
how you can understand, I'm trying to connect with a DataBase sqlite.
I have imported the sqlite JAR's file.
I read on web that the problem may be relative at memory allocated to eclipse, than i must rise this memory from Eclipse.ini file.
I have done it, my file eclipse.ini now is:
but, my problem persist.
The java code that i wrote is:
public class ProvaDB1 {
public static void main(String[] args) throws Exception{
Class.forName("org.sqlite.JDBC");
//try{
Connection conn = DriverManager.getConnection("jdbc:sqlite:db.db");
Statement stm = conn.createStatement();
stm.close();
conn.close();
this is all code that i wrote!
Just two month ago, I had an old PC with Windows 7, now I have a new PC with Windows 8 (4gb ram). With the old PC eclipse work very well, now....
I'm not able to solve this problem, thanks for all of you that can help me.
[Updated on: Wed, 31 July 2013 11:40] Report message to a moderator
|
|
|
Re: Out Of Memory error in Eclipse Juno [message #1076447 is a reply to message #1076361] |
Wed, 31 July 2013 12:05 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Michael,
What's running out of heap space, the IDE (in which case increasing it
in the eclipse.ini will help) or in your own launched application (in
which case you need that option in the launch configuration for your
application).
On 31/07/2013 1:33 PM, michael m wrote:
> Hi guys,
> first, I want to ask you sorry for my bad english.
> I have a problem with Eclipse Juno.
> The error that the software back to me is the following:
>
>
> The line 10, is the line:
>
> Connection conn = DriverManager.getConnection("jdbc:sqlite:db.db");
>
> how you can understand, I'm trying to connect with a DataBase sqlite.
> I have imported the sqlite JAR's file.
>
> I read on web that the problem may be relative at memory allocated to
> eclipse, than i must rise this memory from Eclipse.ini file.
>
> I have done it, my file eclipse.ini now is:
>
>
>
> but, my problem persist.
> The java code that i wrote is:
>
> this is all code that i wrote!
>
> Just two month ago, I had an old PC with Windows 7, now I have a new
> PC with Windows 8 (4gb ram). With the old PC eclipse work very well,
> now....
>
> I'm not able to solve this problem, thanks for all of you that can
> help me.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
Re: Out Of Memory error in Eclipse Juno [message #1079551 is a reply to message #1079229] |
Sun, 04 August 2013 19:44 |
|
On 08/04/2013 01:58 AM, michael m wrote:
> Thanks for your answer!
> But I'm not able to do what you say me to do.
> how I have to do this?
> which parameter I have to modify?
>
> thanks again.
When you run your application, the one that's trying to open the SQLite
database, you have a "launch" or "run/debug configuration" whether
you're running the debugger or just running it. For the specific
application, you'll find tabs in that configuration that allow you to
specify arguments, environment variables, etc.
Hope this helps.
|
|
|
Powered by
FUDForum. Page generated in 0.09580 seconds