problem in browser - using Swing

i have a JApplet.i can open that applet in appletviewer.but i could not open in browser.when i call the applet class file from HTML,is giving error.

i'm using JDK1.3 and javawebserver2.0 with windows NT..

now i have set the classpath like c:\jdk1.3\jre\lib\rt.jar

errors are:

In IE5.5:(JDBCJTree is my applet class file)

java.lang.InstantiationException: JDBCJTree

at com/ms/applet/BrowserAppletFrame.newInstance

at com/ms/applet/AppletPanel.processSentEvent

at com/ms/applet/AppletPanel.processSentEvent

at com/ms/applet/AppletPanel.run

at java/lang/Thread.run

In netscape4.6:

warning: running 1.2 version of SwingUtilities

# Applet exception: exception: java.lang.NullPointerException

java.lang.NullPointerException

at javax.swing.SwingUtilities.appContextGet(Compiled Code)

at javax.swing.TimerQueue.sharedInstance(Compiled Code)

* at javax.swing.JApplet.<init>(Compiled Code)

at JDBCJTree.<init>(Compiled Code)

at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)

at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)

at java.awt.EventDispatchThread.run(Compiled Code)

at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)

if u have any idea to solve this problem,please let me know

[1435 byte] By [muthukk] at [2007-9-26 1:37:51]
# 1

First thing to ask is: have you used HtmlConverter on your HTML file? You can't display JApplets using <applet> ... </applet> tags. If you have these tags in your current HTML page, then use the converter to make a new HTML page, which should work OK.

If you have JDK 1.3, then you already have HtmlConverter.Just CD to the directory where your HTML file is and type:

HtmlConverter yourHtmlFileName

If you don't have JDK1.3, you can download the HTML converter from sun's site:

http://java.sun.com/products/plugin/1.3/docs/html_converter.html

artntek at 2007-6-29 2:25:08 > top of Java-index,Archived Forums,Swing...