Error in Applets

J

jayalath.tharaka

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.
 
J

John B. Matthews

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.

<http://download.oracle.com/javase/tutorial/uiswing/examples/components/index.html#TumbleItem>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top