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 installed jdk 1.5.0_01 and NetBeans 4.0 with mobility pack, now when i try to create a new Mobile application, a simple "hello world", the compiler shows me this error: Fatal Error: Unable to find package java.lang in classpath or bootclasspath Thank you for your support
If you repeat the action does it happen again? What happens if you restart the IDE? Any addition informaion that would help us to reproduce the problem would be appreciated.
If I restart the IDE the problem persist, I developed a MIDLET application with NetBeans 4.0 and jdk 1.5 on a P4 2.6 Ghz with 512 MB RAM and all works correctly, now I installed the IDE and the jdk on another PC (P4 dual processor 2.8 Ghz 512 MB RAM ) and if I try to compile this project or a new "Hello world" MIDLET application the problem is the same, I got Fatal Error: Unable to find package java.lang in classpath or bootclasspath I tried also to install the previous JDK 1.5.0 instead of 1.5.0_01 and I uninstalled and re-installed all the IDE but the problem still there. Thank you Best Regards
Do you have the same emulator platform installed on both computers or do you use J2ME Wireless Toolkit that is already bundled with Mobility? Isn't it showing a broken icon by your project and offering "Resolve Broken Referencies" action in the popup menu of your project? If you go into project propertie could you see correct platform selected? If you select for example a different device in project properties does the problem persist? Is the problem with the only one project or any new project created on the second machine is reporting the same exception? Thanks for your help to find the root cause of this problem. Yours, Adam Sotona
I used the mobility pack boundled with NetBeans 4.0 on both computers. The problem is reported with all new/old projects and with all devices. But... It seems that the emulator installation in "documents and setting\userprofile....." folder doesn't work correctly. When I click on "Refresh" button the configuration fails. Now I have installed J2ME Wireless Toolkit 2.2 in c:\WTK22 and in NetBeans- >Manage emulator I have added a new platform linked to the this folder and all works correctly.
Yes, it seems like a bad installation of the Wireless Toolkit. Could you, please, zip all .bat files from bin folder of the wrongly installed Wireless Toolkit. It should be located at C:\Documents and Setting\<userprofile>\.netbeans\4.0\emulators\wtk22_win\emulator\wtk22\bin If you try to run "emulator.exe -version" from the bin folder, what happens?
since I haven't seen any response since Apr/1 I'm closing the issue as Invalid. If the problem persists feel free to add more information and re-open the issue.
verifying all old issues
The problem is completely disappeared with new NetBeans version 5.0 from beta 1 to RC 1 ... Great product !!! thank you for your support Stefano