This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When running the MIDP2.0 application, the ant build script is failing because of the following error. "Unable to find package java.lang in classpath or bootclasspath" Exact Details : 'D:\HARSHA\Work\MyHello\build\preprocessed' '-target' '1.1' '-bootclasspath' 'C:\Documents and Settings\sharsha\.netbeans\4.1 \emulators\wtk22_win\emulator\wtk22\lib\cldcapi11.jar;C:\Documents and Settings\sharsha\.netbeans\4.1\emulators\wtk22_win\emulator\wtk22 \lib\midpapi20.jar;C:\Documents and Settings\sharsha\.netbeans\4.1 \emulators\wtk22_win\emulator\wtk22\lib\wma20.jar;C:\Documents and Settings\sharsha\.netbeans\4.1\emulators\wtk22_win\emulator\wtk22 \lib\mmapi.jar;C:\Documents and Settings\sharsha\.netbeans\4.1 \emulators\wtk22_win\emulator\wtk22\lib\j2me-ws.jar;C:\Documents and Settings\sharsha\.netbeans\4.1\emulators\wtk22_win\emulator\wtk22 \lib\jsr75.jar;C:\Documents and Settings\sharsha\.netbeans\4.1 \emulators\wtk22_win\emulator\wtk22\lib\jsr082.jar;C:\Documents and Settings\sharsha\.netbeans\4.1\emulators\wtk22_win\emulator\wtk22 \lib\jsr184.jar' '-encoding' 'Cp1252' '-g' '-source' '1.3' The ' characters around the executable and arguments are not part of the command. File to be compiled: D:\HARSHA\Work\MyHello\src\hello\HelloMidlet.java Fatal Error: Unable to find package java.lang in classpath or bootclasspath D:\HARSHA\Work\MyHello\nbproject\build-impl.xml:174: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at org.apache.tools.ant.Project.executeTargets(Project.java:1062) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run (BridgeImpl.java:234) at org.apache.tools.ant.module.run.TargetExecutor.run (TargetExecutor.java:242) at org.netbeans.core.execution.RunClassThread.run (RunClassThread.java:125) BUILD FAILED (total time: 0 seconds) I am unable to resolve this. Please let me know the fix.
Please, check if C:\Documents and Settings\sharsha\.netbeans\4.1 \emulators\wtk22_win\emulator\wtk22\lib\cldcapi11.jar exist and contains java.lang package. If not, reinstallation of Mobility Pack may help. Did anything strange happen during the installation?
When selecting the platform and refreshing, configuration failed option is coming. Tools>Java Platform Manager>J2ME Wireless ToolKit>DefaultColorPhone > and refresh, Configuration Failed is showing, It should give some more information along with the message, saying why it failed.
Seems like issue is caused by the same case as in http://www.netbeans.org/issues/show_bug.cgi?id=60559 This is fixed in 5.0 builds.
verifying all old issues