Stephan Wunderlich - Sun Germany - ham02 - Hamburg wrote:
Hi Peter,

asking on dev-dba, Frank redirected me to this list.

I want to automate the Java-Settings during and after the installation.
So, if a JDBC-Driver is required, the users have to add a classpath via GUI and restart the application. Is there a way to automate this via scripting?

There's no jvmsetup in 2.0 anymore, I think.

Alternatively a API-solution (Basic) would be appreciated (if no restarting is required).

May be, the installation- or the dev-list are the better addresses for this kind of question, but I want to avoid X-postings, so lets start here.


in case of jdbc-drivers you could try to pack your jdbc-driver in a zip file and then add it calling "unopkg add yourzipfile" ... unopkg might complain that the zip doesn't contain a uno-package, but as far as I know will copy the jar-file and adjust the classpath, so that the driver should work.

On CWS sb36, targeting "OOo Later," I changed the loading of Java UNO components to no longer use the global Java classpath, so that the above hack will no longer work there. (IIRC, the way new database drivers are integrated into OOo will change then, too; Ocke or Frank on [email protected] should know more.)

-Stephan

Hope that helps

Regards

Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to