• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

sWING pROBLEM

I developed a SWING applet known as my.java.
Compiled it to my.class
wrote a html my.html
all in 1 directory
BUT IN EXPLORER MSG: CLASS NOT FOUND
THOUGH WORKED IN APPLETVIEWER.
EXPLORER WAS IE-5

WHATS THE PROBLEM???PLUGIN??/
0
ps_pahwa
Asked:
ps_pahwa
  • 2
1 Solution
 
OviCommented:
Yep, or you can load with the applet the swing.all archive.(Swing is not cirrently recognized by the browser). Something like :

<APPLET NAME="XXX" archive="swingall.jar" CODE="XXX.class" WIDTH=800 HEIGHT=400 ></APPLET>

Or, you can unjar the swing classes (to avoid loading of all swing) in the applet directory (codebase), keeping the original directory structure ("javax.swing. ...."/"com.sun.java.swing. ...")
0
 
ps_pahwaAuthor Commented:
what do swingall.jar jar files contain because i am not able to find this file on my system
0
 
OviCommented:
This swingall.jar contain all swing classes. In order to make your applet work in browser you must load this jar among with your applet code. Your applet is working in appletviewer, because you use the swing which come with your development system. Please provide me an email so I can ship you the jar, or if you don't have problems with connection speed via Internet, download yourself the Swing from www.javasoft.com. You will find the jar file in the "stand-alone" distribution of Swing.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now