Author | Message |
---|---|
LHS
Posts: 26
|
Posted 23:29 Apr 17, 2019 |
I can get my lab18 program to run and connect to the cs3 server on eclipse, but after I deploy to cs3 and run it on cs3 it seems to have issues connecting. I keep getting an java.lang.NoClassDefFoundError: Could not initialize class com.mysql.cj.util.Util error. I know it means its not connecting due to the sql connector jar not being found, I just don't understand why it works on my computer, but not cs3. |
kevinNgo
Posts: 3
|
Posted 23:32 Apr 17, 2019 |
I got the same problems before. My suggest solution is delete all of files which call the jdbc driver, then upload everything again. It works for me. |
LHS
Posts: 26
|
Posted 23:42 Apr 17, 2019 |
Unfortunately that hasn't worked for me. I still get the same issue. |
cysun
Posts: 2935
|
Posted 23:48 Apr 17, 2019 |
See the HelloJDBC example. If it works for Lab 16, it should work for Lab 18. |
LHS
Posts: 26
|
Posted 00:01 Apr 18, 2019 |
I changed the code to work exactly like lab 16, I deleted and re-uploaded as well, it works on my computer, but I still get the same error on the deployed version on cs3.
|
cysun
Posts: 2935
|
Posted 08:10 Apr 18, 2019 |
Reloading the project seems to have fixed the problem. |