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.

Bug 68117 - Fatal Error: Unable to find package java.lang in classpath or bootclasspath
Summary: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
Status: CLOSED WONTFIX
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Martin Ryzl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-04 19:19 UTC by echicken
Modified: 2006-10-23 16:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description echicken 2005-11-04 19:19:12 UTC
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?
Comment 1 Petr Suchomel 2005-11-05 10:19:42 UTC
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.
Comment 2 Lukas Hasik 2006-01-17 13:57:16 UTC
verifying all old issues