X-Received: by 10.66.86.198 with SMTP id r6mr546053paz.36.1357028747854; Tue, 01 Jan 2013 00:25:47 -0800 (PST) Received: by 10.50.0.204 with SMTP id 12mr13740722igg.9.1357028747784; Tue, 01 Jan 2013 00:25:47 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!f6no3424496pbd.1!news-out.google.com!s9ni70930pbb.0!nntp.google.com!kr7no12125288pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Tue, 1 Jan 2013 00:25:47 -0800 (PST) In-Reply-To: <50e24bb4$0$283$14726298@news.sunsite.dk> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.214; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T NNTP-Posting-Host: 173.164.137.214 References: <50e24bb4$0$283$14726298@news.sunsite.dk> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4dccdbc3-8447-4fb2-8483-ebe11434ee69@googlegroups.com> Subject: Re: NoClassDefFoundError From: Lew Injection-Date: Tue, 01 Jan 2013 08:25:47 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.java.programmer:20846 Arne Vajh=F8j wrote: > emf wrote: >> After a long time, I tried to create an applet. In eclipse [sic] it runs >> perfect as an applet, but in the webpage in the browser it gives a >> NoClassDefFoundError. Hmm. Could there be a dependent JAR missing in the browser context? >> I even tried my very first program, HelloWorldApplet, but I got again Example, please? http://sscce.org/ >> the same problem. Which would be ...? Yes, yes, you said 'NoClassDefFoundError'. What was the *exact* message? What is the code? >> What kind of problem is this?=20 http://docs.oracle.com/javase/7/docs/api/java/lang/NoClassDefFoundError.htm= l You did read this before, yes? It explains exactly what kind of problem this is. RTFM is sooo useful. >> Is it a compilation issue? Really? Come on. >> Or is it an eclipse [sic] problem?=20 Given that it doesn't happen in Eclipse, according to your report, I'd have= to=20 guess no. >> At this stage I would be happy to have the HelloWorldApplet run: I feel = if I this runs, my other program will run too. "Feel"? Logic should rule. > Impossible to say without more info. Quite. Although it's certainly possible to say this isn't a compilation error,=20 given that it happened at runtime and not during compilation. > It could be that the class/jar file is not correctly placed > or is not correctly served by the web server. Or not referenced properly in the various tags and applet JAR. How are you packaging the applet? How are you specifying its classpath? --=20 Lew