ClassNotFoundException database driver
As part of my installation procedure I want to connect to a database to prove the details provided are correct. The problem I am having is with a class not found exception being thrown when I use Class.forName(strDriver);.
I have tried embedding the driver jar using the 'Embedded JARs' option from the 'Distributions' option for the 'Win32 Launcher Distribution' although this doesn't seem to actually include the jar within the 'setup.jar' and also is not the best solution as I would need to include it manually into each of the available distribution mediums.
Any pointers are greatly appreciated.
You can add extra resources to setup.jar by implementing the build method in a custom bean; please see the Javadoc for the WizardBuilderSupport or ProductBuilderSupport class (depending on what type of action you use), methods putArchive, putPackage, putClass, and so forth...
Thanks (again) RobertDickau. You seem to live here helping others ;o) are you a moderator or just a real nice guy, or both?
I'll look into your pointers later as It's time for some sleep for me (there is only so much time you can commit to working and IS is not my only day job...)
I haven't actually got as far as doing my own actions as still struggling with the custom dialogs and don't want to invest too much time if my company decide to abandon IS for another route (which has been discussed already).
Do you (or anyone) know of any good tutorials at getting the basic understanding of the IS framework? I have no problem researching the facts etc for myself but with nothing, the API is quite daunting! would be nice to see the initial launching points in a presentation manner. The bigger picture always helps )
I personally would like to stay with IS as I had the task of doing the original multiplatform installers (which worked well on JRE1.4) and while a couple of un-resolved problems remain (which I hope are resolved with IS11) I was confident to recommend the upgrade to IS11 to my manager!!
I'm not so sure now but presume I am wrong in my presumtions...
Same problem - oracle.jdbc.driver.OracleDriver not found
I have the same need - to invoke some JDBC code from the running installer (just to establish the connection - nothing else). RIght now, the code runs from the Swing Button event handler [Test Connection]
I'm new to IS, so I'm trying to determine how much I have to do to include the ojdbc14.jar into setup.jar. Do I have to write new code and go down the path of custom beans or actions (whatever they are) in order to do this?
I finally got this working - THe jars have to be included in the distribution (setup.exe or setup.bin) not the product.jar I think the embed jar option is availble from the following location
Media --> releases --> Distributions --> then select the platform and the option for 'Embeded jars' should be available. The only problem with this approach is that you have to individually embed the same jars for all the different platforms you intend to target.
Hope this helps.