We help IT Professionals succeed at work.

Cannot import java package

chalisas824 asked
Please do advice whether how to import these following libraries:

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.*;
import java.util.*;
import java.io.*;

on which package or files that I might be using?

Best Regards,
Chalisa S.
Watch Question

Principal Solutions Architect
Top Expert 2006
If you are using netbeans which supports J2ME development, press Alt+Shift+I keeping the cursor in the above java file, it must automatically import the required classes.
In Eclipse, you can press Ctrl-Shift-O to trim the includes so only the classes that you actually use are imported, and import any classes that you reference but haven't imported.


I did try it, but still didn't work on NetbeanIDE for Alt-Shift-L
Siva Prasanna KumarPrincipal Solutions Architect
Top Expert 2006

It was "Alt+Shift+ i" not "Alt+Shift+ L" :)