Is there any "Hello World" documentation

Skip to first unread message

May 8, 2013, 2:57:51 PM5/8/13
I compiled this successfully and now I have the jars. What do I do now to get the jar to run? If I type:

> java akiban-sql-parser-1.0.15-SNAPSHOT.jar
Exception in thread "main" java.lang.NoClassDefFoundError: akiban-sql-parser-1/0/15-SNAPSHOT/jar
Caused by: java.lang.ClassNotFoundException: akiban-sql-parser-1.0.15-SNAPSHOT.jar
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
Could not find the main class: akiban-sql-parser-1.0.15-SNAPSHOT.jar. Program will exit.

Just a getting started document would be fine. I just need to parse some pl/sql and can't find a parser without using ANTLR grammar and coding it myself.

Nathan Williams

May 8, 2013, 4:45:20 PM5/8/13
Hi James,

Examples are one area where we are lacking for the parser. Sorry about that.

A key point to note is that the parser is intended to be used as a library in an application, not invoked directly. That's why the jar file is not executable on its own.

I've put something together in the past that should get you started, I think. Have a look at:

The demo shows how to install, depend on, and parse queries. It's a trivial example, only referenced columns are printed to stdout, but is generally representative.

The SQLParser class is where you'll want to get started:

As always, don't hesitate to ask if you run into any problems.

Reply all
Reply to author
0 new messages