Error - Could not find or load main class

后端 未结 4 1335
南笙
南笙 2021-01-29 07:27

I want to connect my java program to connect with database and retrieve the data. its compile perfectly but runtime im getting this Error : Could not find or load main cla

4条回答
  •  生来不讨喜
    2021-01-29 08:32

    You should download Driver from HERE

    and JAR file need to add to project class path.

    First Right click on you Eclipse Project, Project --> Build Path --> Configure Build Path. Under Libraries tab, click Add Jars or "Add External JARs" and add downloaded jar

    Not 100% sure but looks like you are using wrong port number 80. Make sure your MySQL port number is current by below statement

    SHOW VARIABLES WHERE Variable_name = 'port';
    

提交回复
热议问题