troubleshooting Question

Error when getting ressource in JApplet

Avatar of matthew016
matthew016Flag for Belgium asked on
Java
28 Comments2 Solutions198 ViewsLast Modified:
Hi,
In my HTML page I use a JApplet,
in the code tag I have my JApplet class,
in the archive tag I have the name of the .jar

<applet code="client.ui.Client_GUI_Frame.class"
        archive="Client.jar"
      name="Le Hall"
       ...

I have this exception :

java.lang.NullPointerException
      at javax.swing.ImageIcon.<init>(Unknown Source)
      at client.ui.AnimationPane.créerActionsSecToolbarContacts(AnimationPane.java:95)
        ...

I have the error at this line :

Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(path));

The path is correct
ASKER CERTIFIED SOLUTION
Mick Barry
Java Developer
Join our community to see this answer!
Unlock 2 Answers and 28 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 28 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros