You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2016/03/05 00:19:40 UTC

[jira] [Updated] (CALCITE-1122) Sqlline.bat is not working in Windows

     [ https://issues.apache.org/jira/browse/CALCITE-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde updated CALCITE-1122:
---------------------------------
    Description: 
Sqlline.bat in csv example is not working because classpath is missing. The error messages are like below:

{noformat}
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
{noformat}

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\*". 


  was:
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\*". 



> 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
>             Fix For: 1.7.0
>
>
> Sqlline.bat in csv example is not working because classpath is missing. The error messages are like below:
> {noformat}
> 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
> {noformat}
> 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)