You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Vladimir Sitnikov (Jira)" <ji...@apache.org> on 2020/02/06 21:22:00 UTC

[jira] [Commented] (CALCITE-3776) Create a task in Gradle to run JdbcExample

    [ https://issues.apache.org/jira/browse/CALCITE-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17031941#comment-17031941 ] 

Vladimir Sitnikov commented on CALCITE-3776:
--------------------------------------------

IDEA executes the class just fine. SeeĀ  !jdbcexample.png!

> Create a task in Gradle to run JdbcExample
> ------------------------------------------
>
>                 Key: CALCITE-3776
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3776
>             Project: Calcite
>          Issue Type: Task
>            Reporter: Rui Wang
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: jdbcexample.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Got some troubles to run main class "org.apache.calcite.examples.foodmart.java.JdbcExample":
> 1. Intellij cannot run it directly.
> 2. "java -cp" style commands was not easy to run: 1) ended up with a "Class Not Found" situation while jar should be added to classpath already. 2) "java -cp" need add more jars to classpath (e.g. lingq4j, avatica, etc.)
> So I proposal to create a gradle task to run "JdbcExample". It will be as easy as running "./gradlew :core:runJdbcExample". Intellij can also be easily configured to run this command thus using debugger in IDE becomes possible. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)