View Single Post
  #1 (permalink)  
Old 07-31-2007, 07:01 PM
fernando fernando is offline
Member
 
Join Date: Jul 2007
Posts: 40
fernando is on a distinguished road
Help with method getCodeBase()
Hi, I'm trying to load an Image for my applet:

Code:
getImage(getCodeBase(), "ship.gif")
It compiles fine, but when I try to run it getCodeBase() returns a nullPointerException.

This is really confusing as I cant find another way to do this...

Thanks.
Reply With Quote
Sponsored Links