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.
I'm new to netbeans and have run into an obstacle pretty quickly. I'm running NetBeans 4.1 against jdk1.5.0_05. I created a new Mobile Application project and tried to run the automatically generated code i.e. HelloMidlet.java. During compilation, the following error is shown: Fatal Error: Unable to find package java.lang in classpath or bootclasspath 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) This also happens for any other code I try to compile. Anyone know if there's anything I can do to resolve this?
Looks to me, that you upgraded to jdk1.5.0_05 recently. The issue is caused by invalid path in emulator launcher now. You have two options: Upgrade to NB 5.0, we resolved this issue there. or shut down the IDE Delete: $USER_HOME/.netbeans/4.1/emulators/ $USER_HOME/.netbeans/4.1/config/Services/Platforms/org-netbeans-api-java-Platform/J2ME_Wireless_Toolkit_2_2.xml Start the IDE. Umul;ator should appear again with valid path. We will not fix this for NetBeans 4.1.
verifying all old issues