Lan Wang created CALCITE-1122:
---------------------------------
Summary: Sqlline.bat is not working in Windows
Key: CALCITE-1122
URL: https://issues.apache.org/jira/browse/CALCITE-1122
Project: Calcite
Issue Type: Bug
Affects Versions: 1.6.0
Environment: Windows
Reporter: Lan Wang
Assignee: Julian Hyde
Priority: Minor
Sqlline.bat in csv example is not working because classpath is missing. The
error messages are like below:
Caused by: java.lang.ClassNotFoundException:
org.apache.calcite:adapter.csv.CsvSchemaFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at
org.apache.calcite.model.ModelHandler.visit(ModelHandler.java:210)
... 18 more
In the file sqlline.bat, the parameter of -cp is ".\target\dependencies\*"
while the required calcite-example-csv-VERSION.jar is not included in this path
which causes the exception.
Maybe we can fix the -cp parameter to
"target\test-classes;target\classes;target\dependencies\*".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)