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 59744 - Fatal Error: Unable to find package java.lang in classpath or bootclasspat
Summary: Fatal Error: Unable to find package java.lang in classpath or bootclasspat
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Petr Suchomel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-08 14:55 UTC by ksharsha
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 ksharsha 2005-06-08 14:55:10 UTC
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.
Comment 1 Martin Ryzl 2005-06-08 16:40:19 UTC
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?
Comment 2 ksharsha 2005-06-10 11:26:07 UTC
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.
Comment 3 Petr Suchomel 2005-10-10 16:37:08 UTC
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.
Comment 4 Lukas Hasik 2006-01-17 13:57:45 UTC
verifying all old issues