We help IT Professionals succeed at work.

Cannot import java package

chalisas824
chalisas824 asked
on
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.
Comment
Watch Question

Principal Solutions Architect
Top Expert 2006
Commented:
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.

Author

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

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