简体   繁体   English

如何将 java web 中的 JDBC 连接到 ZF8756D88C7D3B98E2E3E3F(本地主机)?

[英]How can i connect my JDBC in java web to XAMPP (localhost) (NETBEANS)?

I keep getting the error message saying in glassfish that I have no sqlconnector, i have already added it to to the build path, but it keeps failing any work around to use XAMPP with java NetBeans web application? I keep getting the error message saying in glassfish that I have no sqlconnector, i have already added it to to the build path, but it keeps failing any work around to use XAMPP with java NetBeans web application? Thanks in advance.提前致谢。

Finally found the solution to the error I was facing with the solution is below:终于找到了解决我遇到的错误的解决方案如下:

  1. Download the mysql-connector.jar which is compatible with glassfish and NetBeans you are using下载 mysql-connector.jar 与您正在使用的 glassfish 和 NetBeans 兼容

  2. Go to glassfish/lib and paste the jar Go 到 glassfish/lib 并粘贴 jar

  3. Go to glassfish/domain1(the domain you are using)/lib -> paste the jar there Go 到 glassfish/domain1(您正在使用的域)/lib -> 将 jar 粘贴到那里

4.The work is done and ready to use, I solved the issue with this. 4.工作完成并可以使用,我解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM