Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ClassNotFoundException: org.postgresql.Driver #1

Open
printfcoder opened this issue Sep 21, 2016 · 1 comment
Open

java.lang.ClassNotFoundException: org.postgresql.Driver #1

printfcoder opened this issue Sep 21, 2016 · 1 comment

Comments

@printfcoder
Copy link

使用postgresql,无法运行

@stotem
Copy link
Owner

stotem commented Sep 22, 2016

感谢你的使用与反馈,目前bin中的jar仅import了mariadb的驱动jar。
所以默认支持mariadb与mysql, 当在使用其它类型的数据库运行时,需要import相应的数据库驱动jar。
主要操作方法有两个:
1、fork源码在pom.xml中增加数据库驱动依赖,重新打包再以jar -jar GGCode-xxx.jar运行
2、将驱动包下载到GGCode-0.0.1.jar同级目录,使用java -cp GGCode-0.0.1.jar:[driver.jar] App运行(windows则使用java -cp GGCode-0.0.1.jar;[driver.jar] App运行)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants