1

I have a Java project that contains 1 JApplet. I'm able to run the Applet in desk-top mode (adding the applet to a frame in main[] method). It doesn't work in a browser though. Getting this error: I already signed all the jars.

I believe its related to mysql connector jar.

Any ideas?

Exception occurred: java.lang.ExceptionInInitializerError (uncaught)"thread=AWT-
EventQueue-1", java.awt.EventDispatchThread.run(), line=156 bci=152

It runs fine if I add grant all to java.policy

1
  • Please paste the HTML used to launch the applet, the entire stack trace, and at least the part of your code that is the first lines mentioned in the stack trace, identifying their line number. Commented Aug 4, 2012 at 22:20

2 Answers 2

1

You should ensure:

  • That your applet is signed to allow for database connections.
  • That your mysql connector jar is available on your 'download' path just like your applet jar file.
Sign up to request clarification or add additional context in comments.

1 Comment

I just followed those steps: narendranaidu.com/2007/11/… how do I sign for db connections?
0

Running the application from a webserver solved the issue.

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.