-
Heloo!
Hi there,
I am new on this forum and i found it very useful for the java
programmers.
I need your help:
Recently i developed an application that connects with sql database(I am using using WAMP server)
and everything is working really perfect when i compile my code.
I created a setup for my application and it is running but the problem is that it can't connect with my database.
I used both Launch4j and Inno setup compiler to build my setup.
Can anyone help me out?
Thx
-
Re: Heloo!
Quote:
Originally Posted by
Dios
Can anyone help me out?
yes, read this link
-
Re: Heloo!
Moved from Member Introductions
I'd also recommend describing the problem in detail - can't connect to my database says nothing about any exceptions being thrown which describe the route cause. And for future reference, I'd also recommend more descriptive title when posting
-
Re: Heloo!
Thx jps, i now posted my prob in the correct forum.
-
Re: Heloo!
I finally realized that some one moved my post in the correct forum, thx.Sorry for disturbing you i think it os because i am new on this forum but it won't happen agin to make such mistakes.
Following the copeg remark, the thrown exception is : java.lang.ClassNotFoundException:com.mysql.jdbc.Dr iver
-
Re: Heloo!
You need to add the database driver to the classpath. Search the internet for how to do this with your particular IDE (command line, Eclipse, Netbeans, etc...each have a slightly different method for doing so)
-
Re: Heloo!
Thx copeg, i tried to add the database driver in my classpath but still the problem is the same. The Jar files of my java-database connectors are located in the JRE folder now i put them in the libraries of my IDE (netbeans 7) but still there is no change o the setup. My application connects to the database only when i run it directly from the IDE not with the created setup. I wonder whether the Innno setup compiler is limited for this kind of applications or not. I would appreciate if anyone could recommend me another open source software which can perform this task or indicate me the proper way i can do it using Inno setup compiler.
Thx
-
Re: Heloo!
Does the setup application copy the JDBC driver into JRE's lib folder? or
Does the application's manifest file contain a reference to the JDBC driver?
-
Re: Heloo!
Actually this where th eproblem resides. How can i incorporate the Database into the Inno setup compiler. Because the application
is perfectly running and access the database when i compile it from the IDE but it throws the exception when i try to access the database from the created setup!
-
Re: Heloo!
I finally solved the problem. I put the database driver in the same directory
where my application is installed and everything is working as i wanted.
Thx guyz for your suggestions