skip to Main Content

I’m trying to access my mySQL database from my java program in intelliJ. I have used the correct database information as the Database Navigator plugin can connect fine. But I’m following a tutorial (https://youtu.be/e8g9eNnFpHQ) to use the Connector J jarfile and add it to my modules dependencies but I keep getting

Error: Unable to access jarfile

Cant seem to get it to work.

I’ve tried to go to the properties of the jarfile and change the default opening app and that hasn’t worked.

2

Answers


  1. jarfile need to use an absolute path,

    Login or Signup to reply.
  2. try to check your jarfile path
    Like this : java -jar D:JavaIdeaProjectsspringboot3targetspringboot3-0.0.1-SNAPSHOT.jar

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search