This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Applet Help  RSS feed

 
Basker Ganesan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have an applet running on WebSphere 5 It's giving an error
(Java Console error)

java.lang.NullPointerException
at DrawImg.init(DrawImg.java:97)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(On Browser)
Also on the browsers status bar -
Start: Applet not initialized
 
Tim Holloway
Bartender
Posts: 18549
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WebSphere doesn't run applets - they run on the client's computer.
Take a look at line 97 of DrawImg.java. You're attempting to do something with an object that hasn't been initialized yet.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!