Error Package Javax.microedition.midlet Does Not Exist Import Javax.microedition.midlet
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Netbeans 8.0.1 package javax.microedition.lcdui.* does not exist up vote 1 down vote favorite I get an error while using import javax.microedition.lcdui.*; package javax.microedition.lcdui.* does not exist. But the line import javax.microedition.midlet.MIDlet; does not give any error. netbeans java-me lcdui share|improve this question asked Nov 20 '14 at 6:25 Reshma CB 114 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote Imoprt lcdui jar file in your application library. You can download this jar file from here. Download Jar file share|improve this answer answered Nov 29 '14 at 7:11 Altmish-E-Azam 1,2031617 i still get the error. I added the midp.jar to lib folder and used the import statement. –Reshma CB Dec 1 '14 at 6:23 share piece of import packages and full stacktrace of errors. –Altmish-E-Azam Dec 1 '14 at 6:55 The error:
Compiling 1 source file to e:\jmeapp\JavaMEApplication12\build\classes e:\jmeapp\JavaMEApplication12\src\javameapplication12\JavaMEApplication12.java:9: error: package javax.microedition.lcdui does not exist import javax.microedition.lcdui.*; 1 error e:\jmeapp\JavaMEApplication12\nbproject\build-impl.xml:432: The following error occurred while executing this line: e:\jmeapp\JavaMEApplication12\nbproject\build-impl.xml:253: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 1 second)
The import statement import javax.microedition.lcdui.*; –Reshma CB Dec 2 '14 at 8:08 I suggest you create new project and move all source to new project and compile your code. Note Make sure you have added all library in you library path of project. –Altmish-E-Azam Dec 2 '14 at 9:24 add a comment| Your Answer
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to install javax.microedition.lcdui in Netbeans 7.3 up vote 0 down vote favorite Whenever I try to use http://stackoverflow.com/questions/27033128/netbeans-8-0-1-package-javax-microedition-lcdui-does-not-exist this code... import javax.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; ...it shows this error "javax.microedition.lcdui does not exist" How do I resolve this issue? It is installed... "http://gyazo.com/ccd667e24ea2952112cd9fdcd064e0c2" java import share|improve this question asked Apr 1 '13 at 16:41 Austin Scribner 6 1 Is the relevant library on the classpath or build path of the Netbeans IDE? –asgs Apr 1 '13 at 16:42 add a comment| 1 Answer 1 active oldest votes up vote 0 http://stackoverflow.com/questions/15747466/how-to-install-javax-microedition-lcdui-in-netbeans-7-3 down vote You also need to add the JME library/JARs to your project's classpath. You can do this by right clicking on the project and selecting Properties from the popup menu. share|improve this answer answered Apr 1 '13 at 16:43 Code-Apprentice 27.5k353120 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged java import or ask your own question. asked 3 years ago viewed 866 times active 3 years ago Related 2961How to include a JavaScript file in another JavaScript file?4how to install javax.microedition.lcdui package into Netbeans409In Node.js, how do I “include” functions from my other files?1how to install onvif library in eclipse-1install glassfish3 in Netbeans IDE 7.3?1Why doesn't netbeans 7.3 see that I've installed Java 1.7.0_21?531How to import an SQL file using the command line in MySQL?-1I don't understand how to use an imported library in Java, in Netbeans2how to determine the package name of a jar file in Java-1How to import a custom package into another
the Java Gaming Resources, or peek at the official Java tutorials Home Help Search Login Register Java-Gaming.org>Game Development>Newbie & Debugging Questions>package javax.microedition.midlet.*; does not exist Pages: [1] ignore | http://www.java-gaming.org/index.php/topic,13875. Print package javax.microedition.midlet.*; does not exist (Read 3944 times) 0 Members and 1 Guest are viewing this topic. VirtuaCasper Junior Newbie Java games rock! package javax.microedition.midlet.*; does not exist « Posted 2006-05-27 14:26:52 » http://ideone.com/S87x34 im just getting into j2me programming via command lineim having problem with trying to compile a simple midleti get the following error messagepackage javax.microedition.midlet.*; does not existi thought it might be because it cant seem to error package find the classesso i set the classpath with the dir and the lib folder that have thej2me classes inbut no luck...any ideas...? Anon666 Junior Devvie aka Abuse/AbU5e/TehJumpingJawa Re: package javax.microedition.midlet.*; does not exist « Reply #1 - Posted 2006-05-27 14:57:23 » what is the commandline you are executing javac with? VirtuaCasper Junior Newbie Java games rock! Re: package javax.microedition.midlet.*; does not exist « Reply #2 - Posted 2006-05-27 15:44:14 » javac MIDLetTest.javasource is...import error package javax.microedition.midlet javax.microedition.midlet.*;public class MIDLetTest extends MIDLet{ public MIDLetTest() { }} Games published by our own members! Check 'em out! Anon666 Junior Devvie aka Abuse/AbU5e/TehJumpingJawa Re: package javax.microedition.midlet.*; does not exist « Reply #3 - Posted 2006-05-27 17:37:54 » You have mis-named your super class.The correct name is :- MIDletThe correct commandline would be something like :-javac -cp c:\wtk23\lib\midpapi20.jar *.javaI recommend you use an IDE such as eclipse (along with the eclipseME plugin).Once setup correctly, you won't have to worry about classpaths again - and you won't ever mis-name a class. VirtuaCasper Junior Newbie Java games rock! Re: package javax.microedition.midlet.*; does not exist « Reply #4 - Posted 2006-05-28 14:58:40 » just to say a big thank you for helping me... that -cp bit worked a treat....i hopefully can return the favour one day... thanks agaian Pages: [1] ignore | Print You cannot reply to this message, because it is very, very old. Check out our latest community projects! Ads by Project Wonderful! Your ad here, right now: $0 + Plugged Project + Latest in Showcase Shameless Plug! Report inappropriate ads Latest pastebins theagentd (288 views) 2016-10-04 17:29:37 theagentd (288 views) 2016-10-04 17:27:27 xTheGamerPlayz (576 views) 2016-09-
the template in the editor.*/import javax.microedition.lcdui.Alert;import javax.microedition.lcdui.Command;import javax.microedition.lcdui.CommandListener;import javax.microedition.lcdui.Display;import javax.microedition.lcdui.Displayable;import javax.microedition.lcdui.Form;import javax.microedition.midlet.*;/*** @author 10a51a1244*/public class Midletalerten extends MIDlet implements CommandListener {Command copy;Form f1;Display d1; public void startApp() { f1=new Form("command"); copy=new Command("copy", Command.SCREEN, 0); f1.addCommand(copy); f1.setCommandListener(this); d1=Display.getDisplay(this); d1.setCurrent(f1); } public void pauseApp() { } public void destroyApp(boolean unconditional) { } public void commandAction(Command c,Displayable d) { if(c==copy) { Alert a=new Alert("km"); d1.setCurrent(a); a.setTimeout(5000); } }} LyoKICogVG8gY2hhbmdlIHRoaXMgdGVtcGxhdGUsIGNob29zZSBUb29scyB8IFRlbXBsYXRlcwogKiBhbmQgb3BlbiB0aGUgdGVtcGxhdGUgaW4gdGhlIGVkaXRvci4KICovCgppbXBvcnQgamF2YXgubWljcm9lZGl0aW9uLmxjZHVpLkFsZXJ0OwppbXBvcnQgamF2YXgubWljcm9lZGl0aW9uLmxjZHVpLkNvbW1hbmQ7CmltcG9ydCBqYXZheC5taWNyb2VkaXRpb24ubGNkdWkuQ29tbWFuZExpc3RlbmVyOwppbXBvcnQgamF2YXgubWljcm9lZGl0aW9uLmxjZHVpLkRpc3BsYXk7CmltcG9ydCBqYXZheC5taWNyb2VkaXRpb24ubGNkdWkuRGlzcGxheWFibGU7CmltcG9ydCBqYXZheC5taWNyb2VkaXRpb24ubGNkdWkuRm9ybTsKaW1wb3J0IGphdmF4Lm1pY3JvZWRpdGlvbi5taWRsZXQuKjsKCi8qKgogKiBAYXV0aG9yIDEwYTUxYTEyNDQKICovCnB1YmxpYyBjbGFzcyBNaWRsZXRhbGVydGVuIGV4dGVuZHMgTUlEbGV0IGltcGxlbWVudHMgQ29tbWFuZExpc3RlbmVyIHsKQ29tbWFuZCBjb3B5OwpGb3JtIGYxOwpEaXNwbGF5IGQxOwoKICAgIHB1YmxpYyB2b2lkIHN0YXJ0QXBwKCkgewogICAgICAgIGYxPW5ldyBGb3JtKCJjb21tYW5kIik7CiAgICAgICAgY29weT1uZXcgQ29tbWFuZCgiY29weSIsIENvbW1hbmQuU0NSRUVOLCAwKTsKICAgICAgICBmMS5hZGRDb21tYW5kKGNvcHkpOwogICAgICAgIGYxLnNldENvbW1hbmRMaXN0ZW5lcih0aGlzKTsKICAgICAgICBkMT1EaXNwbGF5LmdldERpc3BsYXkodGhpcyk7CiAgICAgICAgZDEuc2V0Q3VycmVudChmMSk7CiAgICB9CiAgICAKICAgIHB1YmxpYyB2b2lkIHBhdXNlQXBwKCkgewogICAgfQogICAgCiAgICBwdWJsaWMgdm9pZCBkZXN0cm95QXBwKGJvb2xlYW4gdW5jb25kaXRpb25hbCkgewogICAgfQ