sjeiwei / sqljet

Automatically exported from code.google.com/p/sqljet
0 stars 0 forks source link

setAutovacuum #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tested the code :

private static SqlJetDb db;
//
// ...
//
db = SqlJetDb.open(new File(this.DB_NAME), true);
db.getOptions().setAutovacuum(true);

With just those lignes I have the error :

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/antlr/runtime/RecognitionException
    at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine$2.runSynchronized(SqlJetEngine.java:282)
    at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.runSynchronized(SqlJetEngine.java:217)
    at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.readSchema(SqlJetEngine.java:276)
    at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.getOptions(SqlJetEngine.java:299)
    at stockage.StockageSQLJet.<init>(StockageSQLJet.java:21)
    at stockage.StockageSQLJet.getInstance(StockageSQLJet.java:38)
    at stockage.Stockage.getInstance(Stockage.java:12)
    at language.Converser.repond(Converser.java:35)
    at MonkeySays.main(MonkeySays.java:35)
Caused by: java.lang.ClassNotFoundException: 
org.antlr.runtime.RecognitionException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    ... 9 more

I downloaded and import in my project sqljet-1.1.0.jar from 
sqljet-1.1.0-all.zip download. I'm using Eclipse Indigo 3.7.2 on Ubuntu Oneiric 
11.10.

Thanks

JL,
April-09-2012

Original issue reported on code.google.com by j.g.lys...@gmail.com on 9 Apr 2012 at 5:54

GoogleCodeExporter commented 9 years ago

Original comment by sergey.s...@gmail.com on 9 Apr 2012 at 5:59

GoogleCodeExporter commented 9 years ago
You just should include 'antlr-runtime' JAR into classpath.

Original comment by sergey.s...@gmail.com on 9 Apr 2012 at 6:02

GoogleCodeExporter commented 9 years ago
Yeah ! you solved my problem.

Original comment by j.g.lys...@gmail.com on 9 Apr 2012 at 6:21