Eclipse cant find the import javax.swing.JOptionPane
Where is it located and how can i include it?
import javax.swing.JOptionPane;
The accepted answer did not work for me.
This is how I solved it:
Right-Click on your project, select Properties
Go to Java Build Path
Click Libraries, then Add Library ...
Select JRE System Library
Click on Execution environment and select JavaSE-1.7 or JavaSE-1.8
Click Finish, then Apply and Close.