Im developing other applications with the same VM without problems. I
tried this with Java 5 and Java 6. Latest VM of both versions is
installed.

On 2 Nov., 17:43, Neunerball <[email protected]> wrote:
> Your last statement (Mac vs. Windows) sounds more like a problem with
> the JRE (JVM), rather than the H2.
> I'd look for a newer Version of the JRE (JVM) 
> @http://developer.apple.com/java/download/
>
> On Oct 30, 2:06 pm, alexg <[email protected]> wrote:
>
> > Hi,
> > please read my postings before.
>
> > I have created a simple class with only one dependency to the latest
> > h2 version 1.2.121
> > My Mac has 2GB memory. This class runs in "java.lang.OutOfMemoryError:
> > Java heap space". There is not SQL statement.
>
> > import java.sql.Connection;
> > import java.sql.DriverManager;
> > import java.sql.SQLException;
>
> > import org.h2.tools.Server;
>
> > public class Test {
>
> >         public static void main(String[] args) {
> >                 try {
> >                         Class.forName("org.h2.Driver");
> >                         Server dbServer = Server.createTcpServer(new
> > String[] {"-
> > tcpAllowOthers", "-baseDir", "/Users/alexg/Documents/java/
> > testDB"}).start();
> >                         Connection connection =
> > DriverManager.getConnection("jdbc:h2:tcp://
> > localhost/testDB",
> >                                         //connection =
> > DriverManager.getConnection("jdbc:h2:" + dbPath,
> >                                                         "sa", //
> > username
> >                                                         "sa");
> >                 } catch (ClassNotFoundException e) {
> >                         // TODO Auto-generated catch block
> >                         e.printStackTrace();
> >                 } catch (SQLException e) {
> >                         // TODO Auto-generated catch block
> >                         e.printStackTrace();
> >                 }
> >         }
>
> > I cat reproduce the problem anytime on my mac. This code works on my
> > windows pc without problems.
>
> > On 30 Okt., 15:33, Thomas Mueller <[email protected]>
> > wrote:
>
> > > Hi,
>
> > > Is it possible that you are running a very old version of H2 on the
> > > server side? What version of H2 do you use on the server side?
>
> > > I can not reproduce this problem. Could you post a simple, standalone
> > > test case that reproduces the problem? It would be great if the test
> > > case does not have any dependencies except the H2 jar file (that is, a
> > > simple SQL script that can be run in the H2 Console, or a Java class
> > > uses the JDBC API and is run using a static main method). Please
> > > include any initialization code (CREATE TABLE, INSERT and so on) in
> > > the Java class or in a .sql script file.
>
> > > Regards,
> > > Thomas- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to