I have written a java program using Blue J as environment. Now this program uses some external libraries (jar files), for example the jar file for the J Connector to connect to MySQL database and also 2 other jar files. In Blue J I simply added the jar files to my project and when I start the program in Blue J, everything works fine. But now I would like to create a .bat file to make it possible to run the program on other computers. I know that normally I start the compiled program with a batch file simply by writing into the batch file
java myApplication
But how can I "tell" the batch file that it should also use the jar files mentioned above? When I use just the code above the bat file doesn't see them and I get the exception "No suitable driver found for jdbc:mysql ... ", which obviously means, he has problems with finding the jar file (because, as I said, starting the program in Blue J works fine). I'm quite new to creating batch files. Can you please tell me how I can get this working?
Thanks and greetings, Daniel