Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.java.programmer Subject: Re: Error in Applets Date: Tue, 26 Jul 2011 02:40:22 -0400 Organization: The Wasteland Lines: 32 Message-ID: References: <58f6eee1-4d57-4dca-99f6-ea95b55229df@t38g2000prj.googlegroups.com> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6565 In article <58f6eee1-4d57-4dca-99f6-ea95b55229df@t38g2000prj.googlegroups.com>, jayalath.tharaka@yahoo.com wrote: > I downloaded the example applet on this page: > > http://download.oracle.com/javase/tutorial/uiswing/components/applet.html > > I tried to compile TumbleItem.java I got the following: > > symbol : class SwingWorker > location: package javax.swing > import javax.swing.SwingWorker; > > I have the latest installed java update for MAC so IDK whats going > on. Thats what my friend got but I got a runtime following error - > > java.lang.NoSuchMethodError: main > Exception in thread "main" > Process completed. > > all are updated by the latest versions and I am using Windows XP. If you download the full example, you'll find TumbleItem.html, which you should open in your browser after compiling TumbleItem.java. -- John B. Matthews trashgod at gmail dot com