Hi, Could you try again with the very latest version? There was a change in this area (even thought, this was for Windows), maybe it works now. If not, do you use any system properties (for example the h2.baseDir)? Could you post the complete stack trace(es)?
Regards, Thomas On Tue, Jun 24, 2014 at 5:57 PM, Matthew Lohbihler <[email protected] > wrote: > Yes, i still get the same exception. > > public static void main(String[] args) throws SQLException { > DriverManager > > .getConnection("jdbc:h2:/Users/Matthew/git/ma-core-public/Core/target/test/h2/ma;DB_CLOSE_ON_EXIT=FALSE"); > } > > > Exception in thread "main" org.h2.jdbc.JdbcSQLException: A file path that > is implicitly relative to the current working directory is not allowed in > the database URL > "jdbc:h2:/Users/Matthew/git/ma-core-public/Core/target/test/h2/ma;DB_CLOSE_ON_EXIT=FALSE". > Use an absolute path, ~/name, ./name, or the baseDir setting instead. > [90011-178] > > at org.h2.message.DbException.getJdbcSQLException(DbException.java:344) > at org.h2.message.DbException.get(DbException.java:178) > at org.h2.message.DbException.get(DbException.java:154) > at org.h2.engine.ConnectionInfo.getName(ConnectionInfo.java:392) > at org.h2.engine.Engine.openSession(Engine.java:42) > at org.h2.engine.Engine.openSession(Engine.java:164) > at org.h2.engine.Engine.createSessionAndValidate(Engine.java:142) > at org.h2.engine.Engine.createSession(Engine.java:125) > at org.h2.engine.Engine.createSession(Engine.java:27) > at > org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:335) > > at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:107) > at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:91) > at org.h2.Driver.connect(Driver.java:74) > at java.sql.DriverManager.getConnection(Unknown Source) > at java.sql.DriverManager.getConnection(Unknown Source) > at Test.main(Test.java:7) > > > This is using version 1.4.178. > > Regards, > Matthew > > > > On Friday, 13 June 2014 09:19:48 UTC-4, Thomas Mueller wrote: > >> Hi, >> >> I don't know, I can't reproduce the problem with your URL. Did you set >> the "h2.baseDir" directory? Do those directories exist, and what is in the >> directory? Does a directory "ma" exist within "h2"? Do you get the same >> exception if you use a standalone program, such as: >> >> public static void main(String[] args) throws Exception { >> String url = "jdbc:h2:/Users/mueller/temp/ >> ma-core-public/Core/target/test/h2/ma"; >> DriverManager.getConnection(url); >> } >> >> Regards, >> Thomas >> >> >> On Tue, Jun 10, 2014 at 6:13 PM, Matthew Lohbihler < >> [email protected]> wrote: >> >>> I'm getting this error message even with a non-relative url. What's >>> wrong with this? >>> >>> A file path that is implicitly relative to the current working directory >>> is not allowed in the database URL "jdbc:h2:/Users/Matthew/git/ >>> ma-core-public/Core/target/test/h2/ma;DB_CLOSE_ON_EXIT=FALSE". Use an >>> absolute path, ~/name, ./name, or the baseDir setting instead. [90011-178] >>> >>> Thanks, >>> Matthew >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "H2 Database" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> >>> Visit this group at http://groups.google.com/group/h2-database. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
