Link to home
Start Free TrialLog in
Avatar of DJ_AM_Juicebox
DJ_AM_Juicebox

asked on

importing SwingWorker

Hi,

How do you import SwingWorker? I can't compile my app, keeps complaining about this line:

import javax.swing.SwingWorker;

which I've taken from examples. I'm assuming it's because I have an old version of java or something?

Thanks
Avatar of ksivananth
ksivananth
Flag of United States of America image

you should be having Java 1.6 to use SwingWorker!
Avatar of Mick Barry
u can download it here

https://swingworker.dev.java.net/
Avatar of DJ_AM_Juicebox
DJ_AM_Juicebox

ASKER

I have version 1.6, just downloaded it 1 minute ago. Is there something else I could be missing?
check java -version to know the verion you use for run/compile app!
if it is different version, make sure you have installed 1.6 successfully and the path variable is updated accordingly!
Ok I am still pointing to javac here:

C:\Program Files\Java\jdk1.5.0_09\bin\javac.exe

but I don't have a 1.6 jdk folder, just:

    C:\Program Files\Java\jre1.6.0_03

and I don't see javac in there....
then you would have downloaded JRE1.6 and installed. You have to download JDK1.6...
ok, where does one get it?
wait - if i compile with 1.6, does that mean users that only have the 1.5.9 or whatever JDK won't be able to see my applets? I mena is this stuff backwards compatible?
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial