How to load a jar at runtime

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

How to load a jar at runtime

fbrundu
Hi,
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 http://stackoverflow.com/questions/30506932/karaf-maven-class-not-found-at-runtime )

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

Thanks
Loading...