[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: applet runs in eclipse but bombs from a web browser.

mimo wrote:
Hi all i am on ubuntu 8.10, JDK 1.6.0.10 and eclipse 3.4.2

I have created an applet that and have exported to a Jar file so I can upload it to a webserver and display it in a browser.

Although the applet ran in eclipse, I am getting an error when running in browser. That main class with init ect extends Japplet.

When i run the applet in eclipse I get the applet window and then my JFrame interface in a seperate window.

When I run the applet in a browser I get this error....
****
Applet starting.
Exception in thread "AWT-EventQueue-8" java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)


at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkExit(SecurityManager.java:744)
at javax.swing.JFrame.setDefaultCloseOperation(JFrame.java:377)
at bolvisitorretrieval.VisitorDataRetrievalUI.initComponents(VisitorDataRetrievalUI.java:28)


at bolvisitorretrieval.VisitorDataRetrievalUI.<init>(VisitorDataRetrievalUI.java:9)

at bolvisitorretrieval.Tester$1.run(Tester.java:19)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)


at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
***


Can anyone assist...

The SWT/AWT bridge has always been ripe with issues. Have you looked at the Albireo project at all?


http://www.eclipse.org/albireo/
http://wiki.eclipse.org/Albireo_SWT_AWT_bugs

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk