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 60253 - java.lang found only if bundle installed
Summary: java.lang found only if bundle installed
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Ryzl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-20 09:42 UTC by raokiran
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 raokiran 2005-06-20 09:42:16 UTC
hello,

the issue is that i'm using netbeans 4.1 with mobility pack 4.1. i installed the
jdk(1.5) separately from netbeans. when this is done, the other features work
just fine, including flow designer and screen designer...even the code is
auto-generated.

but, when i try to compile, it says java.lang not found in classpath or
bootclasspath. i have installed jdk in "C:\Program Files\java\jdk1.5" and
netbeans in "C:\netbeans-4.1"

i had tried previously installing the netbeans-jdk bundle (both for netbeans 4.0
and 4.1)... there were no problems then. this seems to be a problem only when
the jdk and netbeans are installed separately.

====
Kiran
Comment 1 Tomas Zezula 2005-09-15 21:12:46 UTC
Classpath module is an API module, the project type modules (in your case j2me
project type + j2me platform) provide classpath for compiler.
Seems to be a bug in the j2me platform.
Comment 2 Petr Suchomel 2005-09-16 10:22:29 UTC
This is cause by changing JDK. This is fixed in upcoming NB 5.0. To workaround that
1) reinstall the same JDK, emulator will that
2) please shut down IDE and delete 
$USER_HOME/.netbeans/4.1/emulators/ 
and 
$USER_HOME/.netbeans/4.1/config/Services/Platforms/org-netbeans-api-java-Platform/J2ME_Wireless_Toolkit_2_2.xml
Then start the IDE, emulator will get installed again and will be working.
3) If you do not want to delete that, you can use more complicated way:
Go to $USER_HOME/.netbeans/4.1/emulators/wtk22_linux/emulator/wtk22/bin/
and fix executables (.bat) files like this
javapathtowtk=/usr/java/jdk1.5.0_03/jre/bin
Comment 3 Lukas Hasik 2006-01-17 13:57:18 UTC
verifying all old issues