File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JNLP and Web Start and the fly likes Need help with java.lang.reflect.InvocationTargetException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Need help with java.lang.reflect.InvocationTargetException" Watch "Need help with java.lang.reflect.InvocationTargetException" New topic

Need help with java.lang.reflect.InvocationTargetException

aashi amin

Joined: Mar 20, 2010
Posts: 2
I am trying java web start for my gui application and keep getting this error: java.lang.reflect.InvocationTargetException
Below it states that it is caused by the static initializer error, which i have no idea how to fix.
Furthermore, i have already signed the jar file with a self made certificate, and still get a
I'm stumped and would appreciate any help. Thanks in advance.

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at Source)
at Source)
Caused by: java.lang.ExceptionInInitializerError
at arabic.Mainclass.main(
... 9 more
Caused by: access denied ( C:\Users\aashi\Desktop/images/homepage.png read)
at Source)
at Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at sun.awt.SunToolkit.getImageFromHash(Unknown Source)
at sun.awt.SunToolkit.getImage(Unknown Source)
at javax.swing.ImageIcon.<init>(Unknown Source)
at javax.swing.ImageIcon.<init>(Unknown Source)
at arabic.Application.<clinit>(
... 10 more

Currently, i am just trying to launch the application from my desktop, not online.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990

Have you set the security element in your jnlp file?

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
aashi amin

Joined: Mar 20, 2010
Posts: 2
Thanks, i've got it working now.
I agree. Here's the link:
subject: Need help with java.lang.reflect.InvocationTargetException
Similar Threads
JApplet to access Database on server from client maschine
Security Exception for showing images
Unable to show icons in toolbar in the applet
Applet InvocationTargetException
Exception while lookup for EJB from Remote client