• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

why won't ie find JApplet class files?

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have written a simple applet, when I use awt components and extend Applet it works fine, but if I use JApplet and swing components it doesn't work, I get a loadClass not found error.
It compiles so it can't be anything to do with my classpath.
does anyone know what could be wrong:
code:
import java.applet.*;
import javax.swing.*;

class ColorSelector extends JApplet{ //when Applet it works
//code is here
}
and embedded here:
<Applet code="ColorSelector.class" codebase="." width="300" height="400">
<Param name="Red" value="140">
<Param name="Green" value="120">
<Param name="Blue" value="110">
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Richard,
This is because the JVM that comes with IE does not support Java 2 classes like Swing. The only browser that does support Java 2 classes is Netscape 6... otherwise you have to use the Java plug-in from Sun, or stick to just AWT components.
HTH,
-Nate
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will encounter the same problem trying to use Lists, Sets or Maps.
 
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic