Article View: comp.lang.java
Article #597Re: [eng] Need help with an applet (110 line applet included)
From: Martin Schou
Date: Tue, 19 Feb 2002 06:16
Date: Tue, 19 Feb 2002 06:16
46 lines
3684 bytes
3684 bytes
"Ingo Pakleppa" <ipakleppa@cox.net> skrev i en meddelelse news:3c6cb3e2.5566695@news.west.cox.net... > On Thu, 14 Feb 2002 13:08:51 +0100, "Martin Schou" > <martin.schou@grue-hornstrup.dk> wrote: > > >> Do other applets work in IE? It looks to me as if the JVM installation > >> might be messed up. > > > >Well - depending on what Applet it is, it works more or less fine. IE can > >run the applets at java.sun.com/somethingorother just fine, so I'm pretty > >sure it's my applet, that isn't behaving like it should. > > > >Of course, I haven't programmed any (and I do mean any) applets before, so > >I'm probably just doing something like I always do in a regular java > >program, that is a big no no in applets. > > The reason I thought it might be a messed-up IE is twofold: first, > your stack dump said "ClassDefNotFoundException" for a standard Java > class, and second, this apparently happens while trying to throw a > security violation exception. Except that it happens while loading the > init() method, before any of your code is ever executed, so there > should not be a chance for a security violation. > > Looking at your stack trace again, I notice something else: it appears > that the method that is called is the wrong init() - in the wrong > class or something like that. It says "Empty_2.init()" where I would > have expected whatever_your_applet_class_name_is.init(). Do you have > an explanation, maybe? Well, I should have edited that stacktrace, because the class that I'm actually working on _is_ called Empty_2 (stange name, don't ask) and not Applet_That_Will_Not_Work_No_Matter_What_I_Try_Which_Is_Why_I_Need_Your_Help So Empty_2.init() is the correct call. I don't know what I did, but somehow I've gotten Internet Explorer to run the applet ... at least partially. Now it won't show any images, but places the lables like a good little puppy, but no images. It also runs like it should, but alas, no images, and I have absolutely no idea why. And just to make it even stranger, the applet works perfectly in Opera, but of course Opera also runs java through the installed JRE from Sun, which might explain something :-) //Martin Schou
Technical Details
Message-ID:
<L4mc8.1540$z7.392623@news000.worldonline.dk>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!212.54.64.131!news100.image.dk!news000.worldonline.dk.POSTED!not-for-mailReferences:
<d8Q98.5695$5L3.330766@news010.worldonline.dk> <3C67FE63.9090904@no-spam-anneli.dk> <fI5a8.9815$B43.681615@news000.worldonline.dk> <3c68eb59.5384371@news.west.cox.net> <Es7a8.6461$5L3.383511@news010.worldonline.dk> <3c6ba3c5.6698873@news.west.cox.net> <oNNa8.9255$5L3.464431@news010.worldonline.dk> <3c6cb3e2.5566695@news.west.cox.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9a23,7344a4814c81e894 X-Google-Attributes: gidf9a23,public X-Google-Thread: f5d71,7344a4814c81e894 X-Google-Attributes: gidf5d71,public X-Google-ArrivalTime: 2002-02-18 22:16:15 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!212.54.64.131!news100.image.dk!news000.worldonline.dk.POSTED!not-for-mail From: "Martin Schou" <martin.schou@grue-hornstrup.dk> Newsgroups: comp.lang.java,dk.edb.programmering.java References: <d8Q98.5695$5L3.330766@news010.worldonline.dk> <3C67FE63.9090904@no-spam-anneli.dk> <fI5a8.9815$B43.681615@news000.worldonline.dk> <3c68eb59.5384371@news.west.cox.net> <Es7a8.6461$5L3.383511@news010.worldonline.dk> <3c6ba3c5.6698873@news.west.cox.net> <oNNa8.9255$5L3.464431@news010.worldonline.dk> <3c6cb3e2.5566695@news.west.cox.net> Subject: Re: [eng] Need help with an applet (110 line applet included) Lines: 48 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: <L4mc8.1540$z7.392623@news000.worldonline.dk> Date: Tue, 19 Feb 2002 07:16:09 +0100 NNTP-Posting-Host: 213.237.39.12 X-Complaints-To: news-abuse@wol.dk X-Trace: news000.worldonline.dk 1014099371 213.237.39.12 (Tue, 19 Feb 2002 07:16:11 MET) NNTP-Posting-Date: Tue, 19 Feb 2002 07:16:11 MET Organization: Customer of Tiscali A/S