How to make custom library container for Jave in Eclipse? -


so, need use lots of libraries.

usually added libraries through java build path, when added lots of libraries, complicated , not manageable.

so have searched ways resolve problem.

so found can use org.eclipse.jdt.

i want input 3 jar files custom container name sqldriver.

  • mariadb-java-client.jar
  • mysql-connector-java.jar
  • ojdbc6.jar

and use libraries programmatically this

  • new sqldriver.oracle.jdbc.oracledriver()
  • new sqldriver.com.mysql.cj.jdbc.driver()

is possible?

or want manage 3 jars in 1 container.

can me?

i need examples make own custom container.

let me know how it.

you need implement tiny eclipse plug-in providing 2 things:

the initializer have registered @ classpathcontainerinitializer extension point.

as example suggest have @ jdt's junitcontainerinitializer.


Comments