This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
my applets work fine in netscape and appletviewer but when i try to use internet explorer, it doesn't show up. on the bottom, it says "load: class ClassName not found" and my ie does have the latest java installed. i can view other java applets. i've even reinstalled it. even my hello world doesn't work: html: <HTML> <HEAD> <TITLE>A Simple Program</TITLE> </HEAD> <BODY> Here is the output of my program: <APPLET CODE="HelloWorld.class" WIDTH=150 HEIGHT=25> </APPLET> </BODY> </HTML>
code: import java.applet.*; import java.awt.*;
/** * The HelloWorld class implements an applet that * simply displays "Hello World!". */ public class HelloWorld extends Applet { public void paint(Graphics g) { // Display "Hello World!" g.drawString("Hello world!", 50, 25); } } can someone plz help me?? i'm new at this. thank u very very much
Maulin Vasavada
Ranch Hand
Joined: Nov 04, 2001
Posts: 1865
posted
0
hi chris i know that issue. though i didn try to solve it but most probably u can get rid of that issue by using SUN's JRE for browser plugin in IE instead using MS VM. that shd solve the issue.. try that and see if that works for u. in case u r not aware of steps to set the JRE in IE, 1. install SUN's JRE on ur machine if u dont have 2. go to Tools->Advance 3. see where u see an option "Java (Sun)" and under that u'll see checkbox to select whether to use SUN Jre or not... try this n let us know if u face more problems.. regards maulin
i've done that, and it's not just my browser. i've put it online, and asked my friends, and almost all of them have the "load: class ClassName not found." and the same browsers can open all other java applets. again, i'm sure that my .class files are correct, as they work in netscape and in appletviewer. try http://www.geocities.com/c_w0ng/work.html the applet on that page doesn't work for most ppl. ConnectCuatro.class is saved in the same directory as the html file. and that's the only thing i can think of that might be wrong. does it need to be saved in a special way or something? plz help!!!
Maulin Vasavada
Ranch Hand
Joined: Nov 04, 2001
Posts: 1865
posted
0
hi chris yo! i get the same error on IE try specifying CODEBASE="http://www.geocities.com/c_w0ng/html" in the applet tag and if that doesn't work then create a JAR file for the applet classes (even if its just one class) and use ARCHIVE attribute of the applet tag to see if it works. also, if u r just using APPLET tag then try to use OBJECT tag instead for the applet in IE to see if it works (the Object tag in IE and Embed tag in Netscape are for applets that uses swing JREs u know...find more on google)... regards maulin
Chaitanya Reddy
Greenhorn
Joined: Jun 06, 2002
Posts: 18
posted
0
Hello.. I have written an HTML file that uses OBJECT tag to include applets.But OBJECT tag didn't work in IE 6 but <APPLET>tag worked . Also I wrote EMBED tag for netscape.It says Java beans not inited.What does this mean? Please help me as soon as possible thanks chaitu
Chaitanya Reddy
Greenhorn
Joined: Jun 06, 2002
Posts: 18
posted
0
Hello I used EMBED tag for NETSCAPE 4.7 and NETSCAPE 7.It didn't work for both the versions. For NETSCAPE4.7 , it says "JavaBeans notinited" and for netscape 7, it says "Click here for plugin" ,but plugin has already been installed. My code is as follows : <HTML> <HEAD> <TITLE>A Simple Program</TITLE> </HEAD> <BODY> Here is the output of my program: <APPLET CODE="HelloWorld.class" WIDTH=150 HEIGHT=25> </APPLET> <br> <br> <br> <object codetype="application/java" classid="java:HelloWorld.class" width="150" height="500"> Java applet </object> <br> <br> <embed src="HelloWorld.class" height ="150" width="150"></embed> </BODY> </HTML> When I opened the page using netscape 7, applets appeared for <APPLET> ,<OBJECT> but didn't work for EMBED . What is the reason? Please help me thanks chaitu
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.