I use JRE system Library [jre7]
and when I import org.jdesktop.application.Action
I get
The import org.jdesktop cannot be resolved
I removed the build path by Build Path > remove from build path
and then I didproject > properties > java build path > add Library > JRE system Library
and still same error .
If anyone is interested, I had to download 3 JARs:
org.jdesktop.application
classes, org.jdesktop.layout
classes, org.jdesktop.swingworker
classes, required by the others jar The org.jdesktop
code is not part of Java SE, so the classes won't be in the JRE. You need to locate and download a JAR file containing the classes, and then add it to your Eclipse buildpath.
(One place to download the JAR is here ... but it is easy to do your own searching if this link breaks. Go to Maven Central or findjar.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With