How to load a jar at runtime

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

How to load a jar at runtime

I am trying to use the PostgreSQL jdbc driver. I put the corresponding jar in lib/ext in my Karaf distribution 3.0.1). However, when I try to use it from my bundle I get

java.lang.ClassNotFoundException: org.postgresql.Driver not found

(see )

I read the documentation but I could not find a solution.
What am I doing wrong?