I am using `import javax.swing.JOptionPane` in my project and I need rt.jar for that since rt.jar contains `javax.swing`. But rt.jar is a runtime jar and I cannot add it because adding it gives me a dalvik error when I compile my project.

So is there any other way to solve this or get `javax.swing` from any other jar?