Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

com.mysql.jdbc.Driver error message when launching my java database '.exe' app

Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone. I'm having some troubles in creating and installer for my java app which uses the MySQL database.

The build path of the java app has "mysql-connector-java-5.1.44-bin.jar".

I've used before creating any connection to the database.

I'm using "laun4j.jar" in Ubuntu to create the executable. When it finishes creating the .exe file it pops up an error message that says


The next thing I did was using exe4j in windows. After creating the .exe file, when I launched the app's executable I still got the same message.
So no way to launch the app and see it working.

I read and read posts online, but no solution was helpful to me after trying them.

Please if anyone could help, that will be highly appreciated.
Posts: 7108
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if this helps, but with modern JDBC drivers, you don't have to use Class.forName(...)  Try just taking that line out.

Also, is the entire error message just com.mysql.jdbc.Driver?  If not, please post the entire error message and the context you got it in (executing from the command line or a GUI desktop, which one, etc.)

The fact that you're getting this error from two separate launch programs makes me wonder if there isn't something in the Java source itself that's the problem.
Daniel Graham
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's Okay! I've found another solution.

After some intensive research in some other forums, I discovered that it looks best to develop java desktop application that uses a database, with SQLite.

So I've currently switched my database from mysql to sqlite.

Thanks for your good will of help.
    Bookmark Topic Watch Topic
  • New Topic