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 56283 - MIDP application
Summary: MIDP application
Status: CLOSED INVALID
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-11 15:13 UTC by tryfinally
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 tryfinally 2005-03-11 15:13:47 UTC
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
Comment 1 Martin Ryzl 2005-03-14 16:35:16 UTC
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.
Comment 2 tryfinally 2005-03-14 16:47:52 UTC
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
Comment 3 Adam Sotona 2005-04-01 12:53:43 UTC
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
Comment 4 tryfinally 2005-04-01 13:38:43 UTC
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.

Comment 5 Adam Sotona 2005-04-01 14:07:48 UTC
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?
Comment 6 Martin Ryzl 2005-07-11 14:15:49 UTC
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.
Comment 7 Lukas Hasik 2006-01-17 13:57:16 UTC
verifying all old issues
Comment 8 tryfinally 2006-01-19 06:10:17 UTC
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