Hi,

> I have a problem when connecting h2 database that is embedded in
> applet as a .zip file.

I'm sorry, I think this doesn't work right now. The database would
need to open the zip file as a resource (using the classloader), but
it doesn't do that at the moment. I will add a feature request to
support it. The classes FileSystemZip and FileObjectZip would need to
be changed.

The only solution is to load the database from a SQL script that is
stored in the application jar file. Use the RunScript tool to do that,
see also: http://www.h2database.com/javadoc/org/h2/tools/RunScript.html#r0

Database URL: jdbc:h2:mem:test
Reader reader = new InputStreamReader(getClass().getResourceAsStream("db.sql"));
RunScript.execute(conn, reader);

Regards,
Thomas

--~--~---------~--~----~------------~-------~--~----~
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