question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to add shared lib for all drivers

See original GitHub issue

Is your feature request related to a problem? Please describe. My custom JDBC driver library depends on yet another jar (an SDK) that can only be loaded once, not per driver, and so I need to load it in a parent class loader, not as a driver-specific lib in drivers manager

Describe the solution you’d like A command-line option to prepend the parent class loader’s classpath

Describe alternatives you’ve considered I tried dbeaver -vmargs -classpath /path/to/sdk/jar and CLASSPATH=/path/to/sdk/jar dbeaver but the SDK’s class that’s needed by the custom JDBC driver still can not be found.

Additional context Everything works if I load the SDK as a driver library, but this approach has unacceptable limitations including

  • only one driver may be used concurrently because the SDK employs static variables
  • some drivers can not be used at all because the SDK is not loaded by the parent class loader

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ShadelessFoxcommented, Oct 19, 2021

Implemented and will be available in DBeaver 21.2.4.

You can specify any amount of JAR files you want to use “globally”.

java_vuLJgub4fF

1reaction
ShadelessFoxcommented, Oct 13, 2021

Hello @qrkourier,

Thanks for feature request.

We can provide a way to specify global libraries that will be shared between all drivers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extending with Shared Libraries - Jenkins
Any Folder created can have Shared Libraries associated with it. This mechanism allows scoping of specific libraries to all the Pipelines inside of...
Read more >
Set up or join an iCloud Shared Photo Library in Photos on ...
Go to Settings > [your name] > iCloud > Photos, tap Shared Library, then follow the instructions onscreen to add participants and move...
Read more >
shared library -- .so - linux device driver - Stack Overflow
Your shared library is to be used by user-space application, while the driver lives in the kernel. You don't link user-space apps directly...
Read more >
How To Use Shared Libraries In A Jenkins Pipeline?
Instead of creating five different Jenkinsfiles, let's create one Jenkins pipeline library & share it across all Spring Boot applications.
Read more >
Building And Using Static And Shared "C" Libraries
Compile a list of object files, then insert them all into a shared library file. However, there are two major differences:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found