Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #21082
| From | emf <emfril@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: NoClassDefFoundError |
| Date | 2013-01-06 19:19 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <kcd41t$bcr$1@speranza.aioe.org> (permalink) |
| References | <kbth46$g3$1@speranza.aioe.org> <50e24bb4$0$283$14726298@news.sunsite.dk> |
On 2012-12-31 21:36 Arne Vajhøj wrote: > On 12/31/2012 9:24 PM, emf wrote: >> After a long time, I tried to create an applet. In eclipse it runs >> perfect as an applet, but in the webpage in the browser it gives a >> NoClassDefFoundError. >> >> I even tried my very first program, HelloWorldApplet, but I got again >> the same problem. >> >> What kind of problem is this? Is it a compilation issue? Or is it an >> eclipse problem? At this stage I would be happy to have the >> HelloWorldApplet run: I feel if I this runs, my other program will run >> too. > > Impossible to say without more info. > > It could be that the class/jar file is not correctly placed > or is not correctly served by the web server. > > Arne Thanks everybody for your replies and sorry for not having been more specific. I really did not expect to generate such a long thread, this is really a lively newsgroup! The problem was that eclipse (that's how it is capitalized it in the program's logo) insists on putting all classes into packages. When putting an applet in a webpage, the class has to be *in a folder with the same name* as it originally was in eclipse, and the webpage has to *call it from outside the folder*. I considered installing the SDK and compiling the applet without the package line on top, because I prefer to have the html and the applet in the same folder, but that has its own problems, so at this point since the program at last is working in my browser from an html file I count my blessings. Eustace -- Date Calculator with all-purpose JS code https://files.nyu.edu/emf202/public/js/dateCalculator.html
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
NoClassDefFoundError emf <emfril@gmail.com> - 2012-12-31 21:24 -0500
Re: NoClassDefFoundError Arne Vajhøj <arne@vajhoej.dk> - 2012-12-31 21:36 -0500
Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-01 00:25 -0800
Re: NoClassDefFoundError lipska the kat <lipskathekat@yahoo.co.uk> - 2013-01-01 08:56 +0000
Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-01 01:12 -0800
Re: NoClassDefFoundError lipska the kat <lipskathekat@yahoo.co.uk> - 2013-01-01 09:35 +0000
Re: NoClassDefFoundError Magnus Warker <magnux@mailinator.com> - 2013-01-02 01:32 +0100
Re: NoClassDefFoundError Roedy Green <see_website@mindprod.com.invalid> - 2013-01-02 09:49 -0800
Re: NoClassDefFoundError Arne Vajhøj <arne@vajhoej.dk> - 2013-01-02 19:37 -0500
Re: NoClassDefFoundError emf <emfril@gmail.com> - 2013-01-06 19:19 -0500
Re: NoClassDefFoundError Arne Vajhøj <arne@vajhoej.dk> - 2013-01-06 19:26 -0500
Re: NoClassDefFoundError emf <emfril@gmail.com> - 2013-01-09 01:18 -0500
Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-08 22:37 -0800
Re: NoClassDefFoundError Arne Vajhøj <arne@vajhoej.dk> - 2013-01-09 21:36 -0500
Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-09 18:43 -0800
Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-06 17:29 -0800
Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-01 01:26 -0800
Re: NoClassDefFoundError lipska the kat <lipskathekat@yahoo.co.uk> - 2013-01-01 09:38 +0000
Re: NoClassDefFoundError Roedy Green <see_website@mindprod.com.invalid> - 2013-01-01 12:25 -0800
csiph-web