0

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

1
  • Can you clarify what you mean by 'doesn't work' ? Exceptions etc.? Commented Apr 16, 2009 at 11:29

2 Answers 2

3

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

Sign up to request clarification or add additional context in comments.

2 Comments

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

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.