GCC & MinGW How to compile a user library [message #446428] |
Thu, 25 November 2004 04:22  |
Eclipse User |
|
|
|
Originally posted by: melko.gmx.at
morning!!
I have used this tool to convert my project into runable *.exe file and it
worked perfectly until I built in a library, where I search for the
JDBCDriver!!
I built in it in Eclipse as user-library and then added the rar-files and
when I run the program out of Eclipse it works perfect. But when I want to
compile it to a *.jar file it doesn't include the library and so I cann't
create the *.exe file?! I mean I can create it but when I ckick to connect
then he can not find the Driver that is in the library in a *.jar file!?!?
How ca I solve this problem?! I have tried to put the librarys in the
java-path-folder, where all other librarys, and swt librarys are included
but doesn't work!? Tryed to put it in the swt.jar, doesn't work!! I have
no ideas more?!
How can I, when I make a *.jar file out of Eclipse to say him to include
the library?! Because I cann't run the *.jar file when I make it with
Eclipse?!
Thank you for any suggestion!!
Nice greatings from cold austria.
PS: Excuse my english! ;-)
|
|
|
|
Re: GCC & MinGW How to compile a user library [message #446458 is a reply to message #446430] |
Thu, 25 November 2004 06:11  |
Eclipse User |
|
|
|
Originally posted by: melko.gmx.at
Hallo! At first thanks for your answer!
But I don't understand what do you mean with reference?!? Could you give
me a code-sample, please?!
How and where should I reference it? And I need all drivers for all
databases because I make a database-talk program and therefore I need all
Driver!
Thank you for your help!
nice greetings, melko!
> one thing is that if your code uses driver manager to load the driver
> class you should put a reference to the driver class somewhere on your
> code, like:
> com.mysql.Driver driverRef;
> This will force the GCJ linker to include the driver class in the
> compilation unit.
|
|
|
Powered by
FUDForum. Page generated in 0.04485 seconds