• 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 ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

com.mysql.jdbc.exceptions.jdbc4 error  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

The problem look like this = ). Will describe it in a few steps

1. The program is an applet
2. It connects to the database with the mysql connector
3. Connector is in the ext library in Java folder
4. Applet works perfecly in the AppletViewer in the netbeans
5. It crashes in the browser

I thought it was the connector fault so I put it in the classpath, but not. I got this error:


I've done some research, but without any real results. I've tried also with firewall turned off.

Have to mention that applet works perfecly before reinstalling the system [ day before ].
 
iie o'right
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well it occurs that connection was just fine. There wasn' really any mistakes in the code, I had to edit the java.policy file and add this line:

permission java.net.SocketPermission "localhost:3306", "connect, resolve";

thanks for any help I got
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!