문제

For the past several weeks I've been working with Java and I know that this question may be dumb...

I created a console application which is using the MySQL Connector to update records in a database, the problem is that when I deploy it to a jar file and run it I get that the MySQL Connector is missing. I used JDeveloper for this deployment and from the jar export settings I marked that this library needs to be exported too. I am not sure what could be the issue and any input will be welcomed.

Thank you in advance.

도움이 되었습니까?

해결책

You have to add lib: my-sql-connnector.jar in your META-INF.MF in your main jar file.

다른 팁

Use maven for dependencies. You will build .jar with all dependencies.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top