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
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
you should be having Java 1.6 to use SwingWorker!
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!
ASKER
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....
C:\Program Files\Java\jdk1.5.0_09\bin
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...
ASKER
ok, where does one get it?
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.