.jar includes jdbc driver but doesn't work

Hi
I'm quite new with Java. I've just created my first app in java, it's some kind of CMS. I have to give to my friend who can only install JVM and I can't set up his computer, because he lives in other city. What's the problem then:
I tried to compile (build) complete file with jdbc driver. And actually I've done it (when I open jar with winrar I see that mysql-connector.jar is there) but it's not working. I still have error:
SQLException: com.mysql.jdbc.Driver
No suitable driver
08001
It works fine when I'm running it with NetBeans, but built jar doesn't work at all.
Please help me with this problem. I was searching in many forums for the same problem, but no one had it (I mean EXACTLY the same). I have had many problems already with adding connector to NetBeans project at the beginning, but finally I've done it after 2 days - reinstallation of NB solved the problem. Is it possible that's NB fault again?
Thx for any clues
Michael

Hello,
Try to include a Class-Path option in the Manifest of your jar and see if that works.
Hope this helps

Similar Messages

Maybe you are looking for

  • I Can't separate text in frames from repeating

    CS4 Flash Pro v:10.0.2 Win 7 Pro I have been working on a Flash site for a while - and learning quite a bit over the past 2 years.  This is my first Flash design website and I can't see where I went wrong. At some point last year I removed subsequent

  • Security restrictions on any pdf file...???

    Hiii                     As for my knowledge, I want to know that can we protect any pdf file from printing,copying,modifying without password. i have tried a litle bit but it asks for the password for its restrictions. If anybody know how to restric

  • Selection in Infopackage and delta

    Hi Gurus/Experts.. If data for delta intialization is huge and if the data transfer is split by using selection in infopackage and later if i run the delta will it apply only for last selection of delta intialization or for the entire selection so fa

  • I can't activate FaceTime on my iPad.

    I can't activate FaceTime on my iPad. Keep getting activation error "your user name/password is incorrect" even though both are correct and I'm using them to login to iTune and this support community even after i reset it to check!! The iPad iOS is 6

  • Data Transfer between BW and BO

    I have two servers in different networks, there is a firewall between the two networks.One get through to the Internet, and the other one get through to the Enterprise Intranet. BusinessObjects Enterprise XI 3.1 SP3 is setup in one server which can g