applet notinited problem

T

ted holden

I've got an application which uses xmlrpc which works fine in the eclipse
IDE but bombs when I try to export it and run it in a browser. I get an
app notinited message and then, examining the java console:


java.lang.NoClassDefFoundError: org/apache/xmlrpc/applet/XmlRpcException
at iib1gui.getXmlrpctest(iib1gui.java:447)
at iib1gui.getJToolBar(iib1gui.java:193)
at iib1gui.getIimainsplitpane(iib1gui.java:177)
at iib1gui.init(iib1gui.java:98)
at iib1gui.<init>(iib1gui.java:90)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Far as I know, I have copies of that xmlrpc applet jar in the classpath.
I'd appreciate any info or suggestions anybody might have.
 
A

Andrew Thompson

I've got an application which uses xmlrpc which works fine in the eclipse
IDE but bombs when I try to export it ..

'export' it?
..and run it in a browser.

IE by any chance? (Please always mention the make and version
of your User Agent when discussing problems w/web-pages or applets)
..I get an
app notinited message and then, examining the java console:


java.lang.NoClassDefFoundError: org/apache/xmlrpc/applet/XmlRpcException

...the problem is *usually* that IE is running the MSVM, but this
might be different.
Far as I know, I have copies of that xmlrpc applet jar in the classpath.

Applets ignore the classpath, instead they use the archive parameter
of the applet element of the web-page to establish the paths to search
for classes. Show us your applet element, but *.
I'd appreciate any info or suggestions anybody might have.

I'd appreciate you putting the web-page on the net so that I
can do this much faster.

* Post the link, and note the extra tips re applets in this document.
<http://www.physci.org/codes/sscce.jsp>
 
T

ted holden

Andrew Thompson wrote:

Applets ignore the classpath, instead they use the archive parameter
of the applet element of the web-page to establish the paths to search
for classes....


Many thanks, that fixed the problem. I'm obviously new to java...


Ted
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top