Home > Mobile >  ConnectionJ - "Unable to access jarfile"
ConnectionJ - "Unable to access jarfile"

Time:12-05

I'm new to stack overflow but need help ASAP. 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.

Ive tried to go to the properties of the jarfile and change the default opening app and that hasn't worked.

CodePudding user response:

jarfile need to use an absolute path,

CodePudding user response:

try to check your jarfile path Like this : java -jar D:\Java\IdeaProjects\springboot3\target\springboot3-0.0.1-SNAPSHOT.jar

  • Related