java.lang.reflect.invocationtargetexception

Hi to all,

and sorry for my english. I have a problem, obviously!

I work with Eclipse 3.2.1 and Jdk 1.5.0_05 on a WinXp machine to manage a java application with also an applet, and if I execute it with "Run as..." option all works fine. So I create the jar package with "export" tool, I copy it in other computer with Gentoo (kernel 2.6), Jdk 1.5.0._06 and the same jar libraries (in jre/lib/ext) and then I try to access the applet by FF browser from a laptop with WinXP, Java 1.5.0_12 and also the same libraries, but I see only a grey background.

java console output is:

java.lang.reflect.InvocationTargetException

at java.awt.EventQueue.invokeAndWait(Unknown Source)

at eurika.programs.commesse_applet.init(commesse_applet.java:27)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NoClassDefFoundError

at eurika.programs.commesse_applet$1.run(commesse_applet.java:30)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

I think the problem is about awt but I'm not understanding what could be.

someone can help me?

thanks

[1586 byte] By [SinScoa] at [2007-11-27 8:07:11]
# 1

I'm not sure this is the right place for these posts however, the applet works whit a PostgreSQL db and since I have added the IP address of my PC in pg_hba.conf file it is running fine, but...

the same errors/problem happens when I try to execute another applet in the same jar package

java.lang.reflect.InvocationTargetException

at java.awt.EventQueue.invokeAndWait(Unknown Source)

at eurika.editorrecipe.EditorApplet.init(EditorApplet.java:26)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkExit(Unknown Source)

at javax.swing.JFrame.setDefaultCloseOperation(Unknown Source)

at eurika.editorrecipe.MainFrame.initComponents(MainFrame.java:119)

at eurika.editorrecipe.MainFrame.<init>(MainFrame.java:66)

at eurika.editorrecipe.EditorApplet$1.run(EditorApplet.java:29)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

any idea?

thanks

SinScoa at 2007-7-12 19:49:52 > top of Java-index,Desktop,Core GUI APIs...