Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applet works in netscape but not IE

Status
Not open for further replies.

TheButcher

Programmer
Jul 6, 2001
11
US
I created an applet that will run fine on netscape. I try to run the same applet on internet explorer and I get the following message in my java console:

java.lang.NullPointerException
at DApplet.start(DApplet.java:81)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I have the java 1.4 plugin installed on both netscape and internet explorer. Can anyone please help?

 
Have you made sure that both browsers are using the 1.4 JVM?
I don't know how you do this but thought it might be the problem, since I had the same problem but it was fixed as soon as I installed the 1.4 JRE.
 
To check if IE using 1.4 JVM, follow this step, go to settings, control panel. If you have installed the 1.4 JRE, you can see 'Java Plug-in 1.4' in the control panel, click on it, you will get a dialog Java Plug-in control panel, go to advanced tab and check if the Java Runtime Environment is using is using proper JRE which you have installed. Else select the correct path where you have installed it.

 
Thanks for the advice. Yes, both where using java 1.4. The problem turned out being a null pointer b/c it couldnt find my .gif image for my label. Netscape worked with a relative file address, but I had to put in the full IP URL to get IE to read the address of the gif. Unfortunately, my other tool bar is generated by jar files and I do not have the source code to edit these. Is there anyway to get IE to work relatively?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top