I'd like to package Orbada as RPM and ship a default configuration that initializes the jdbc driver config dynamically according to the installed drivers.
To accomplish that, I am using a shell wrapper-script to start orbada that detects the oracle install path and sets the CLASSPATH environment variable and the -Djava.library.path argument accordingly. (I have attached the script.)
Besides I removed the oracle drivers ojdbc14.jar, ojdbc6.jar and orai18n.jar from Orbadas jdbc/ directory.
However, I found out that first time driver initialization uses a fixed list of drivers in InternalDatabase.java that contains a fixed path to DRV_LIBRARY_SOURCE. (e.g. './jdbc/ojdbc14.jar', even though this file doesn't exist anymore.)
A great new feature would be the dynamic detection of driver paths only based on DRV_CLASS_NAME by using the CLASSPATH.
(I think squirrel-sql detects its drivers by using a similar approach.)
Anonymous
Hi,
In the near future I will try to do the detection
Andrzej