Kyle G
Kyle G

Reputation: 467

MYSQL & Java Applet

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

Upvotes: 0

Views: 370

Answers (2)

lapinferoce
lapinferoce

Reputation: 23

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

Upvotes: 0

Brian Agnew
Brian Agnew

Reputation: 272417

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

Upvotes: 3

Related Questions