简体   繁体   中英

How to import existing repository into a Java project using Eclipse?

I am trying to use the repository MySQL . The first instruction in the tutorial tells me to put the repo into my project in my workplace. Then, it tells me I can access it immediately using MySQL as a type, like other objects and what not. However, it seems that I cannot access the repo what-so-ever.

What is the correct way to go about importing a repository into my current project?

You have to add it to the classpath, so the JVM knows to look for it.

Right click on the file and select "Add to Build".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM