What is classpath for Groovy Console / jdbc driver prblem?

感情迁移 提交于 2019-11-28 02:17:22

Autor's answer:

When driver JAR is added "dynamic" from menu (like written over) is visible but not working as JDBC.

When driver JAR is dropped into ...console\lib catalogue (between other JAR'a of Groovy) all OK.

This level of investigation is enough for me, maybe someone try to find bug in menu. Can I accept (green) my own answer?

Solution for today, is add the following at beginning of script. Using groovy 2.5.

@Grab('com.microsoft.sqlserver:sqljdbc4:4.0')
@GrabConfig(systemClassLoader=true)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!