tags:

views:

161

answers:

2

Hello,

I am currently changing a java desktop application over to a java applet. Everything is working fine, but as soon as the applet attempts to make a mysql database call, it does not work. The code in the desktop application is fine, but as soon as its called from the application its not working.

Do any changes need to be made to the code because it is being called from an applet rather then a desktop application using JDBC?

Thanks

~ Kyle G

+2  A: 

I suspect you're probably trying to talk to a server other than the one serving your applet ? See this for applet security restrictions.

Brian Agnew
Thats it!. Just ran them from the same server and problem was solved. Thanks :)
Kyle G
Good. It's probably worth providing more info re. the error in future, since the above was a bit of an informed guess :-)
Brian Agnew
A: 

The JDBC in the applet can not connect to the other server port : security restrictions like they can not read file on your desktop

lapinferoce