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 45835 - Unable to compile MIDlets
Summary: Unable to compile MIDlets
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Martin Ryzl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-02 11:45 UTC by thylux
Modified: 2006-06-23 17:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log (8.22 KB, text/plain)
2004-07-02 16:57 UTC, thylux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thylux 2004-07-02 11:45:33 UTC
after installing j2me wireless module, i can't 
compile any code because of an error like:
"package does not exist: javax.microedition.lcdui"
the code completion feature recognizes this 
package and all it's javadocs are visible. 
everything seems fine, but it won't let me 
compile. I followed all installation instructions 
from Mobility Modules Tutorial, but it still 
doesn't work.
Comment 1 Tomas Brandalik 2004-07-02 12:30:15 UTC
Could you attach your ide.log file?
I would recommend to start with new userdir for example (-userdir
c:\temp),then update j2me modules again (with j2me examples). Open
help menu->j2me examples wizard and use one of examples bundled with.
Then please send me the ide.log

Thanks
-Tomas
Comment 2 thylux 2004-07-02 13:37:03 UTC
"2. On the first page of the wizard, select the Install Manually 
Downloaded Modules (.nbm files) radio button. Follow the wizard 
instructions to download and install
the following modules from the Update Center:
 J2ME Wireless module
 J2ME Wireless Toolkit 2.1 module for your platform.
 J2ME Examples module"

i don't have internet access from my computer, so the modules that i 
can use are only those on the plug-in catalog (to offline 
instalation). i couldn't find j2me examples module there. when i 
installed j2me wireless module, i defined it to be global. was it 
wrong? btw, j2me wireless module has no direct reference to J2ME 
Wireless Toolkit 2.1 module. is it already integrated, or do i have 
to use the one from sun's website?
Later i'll bring you my ide.log.
thanks
Comment 3 Tomas Brandalik 2004-07-02 14:32:37 UTC
wtk is already integrated with the ide. You don't have to download
anything extra. When you install nbms localy it places the modules to
your userdir. This is ussual way.
Comment 4 thylux 2004-07-02 16:57:19 UTC
Created attachment 16125 [details]
ide.log
Comment 5 thylux 2004-07-02 17:11:38 UTC
well, if wtk 2.1 is already integrated with netbeans 3.6, then ther 
is something else wrong, because in order to have MIDP emulators i 
need to install wtk 1.0.4. I couldn't install any other... but that 
is another problem. the real deal is really that the compiler 
features won't recognize MIDP code, although recognized by the rest 
of the IDE.
you said that i need just the wtk 2.1 ntbm, besides the ide, right?
thanks for helping me :P
Comment 6 thylux 2004-07-06 14:06:20 UTC
well. in order for it to work i needed to install wtk 1.0.4, because 
wtk 2.1 wasn't bundled nor j2me wireless module installed it. then 
for the compiler to recognize the j2me classes, i manually added to 
class library. i don't know how it didn´t work in the first place, 
but now it's fixed. maybe that's all because some error related with 
the missing wtk 2.1...
thanks for ur help anyway!
Comment 7 Tomas Brandalik 2004-07-07 09:24:27 UTC
ok,sorry for misunderstanding, I meant that wtk21 and wtk104 emulators
are part of j2me wireless support in nb3.6 and you doesn't have to
download them separately.
You need to download for j2me support only: kjava.nbm, wtk21_win.nbm
and kjava-emulator_win.nbm. If you want to obfuscate your application
download also kjava-obfuscator-proguard.nbm and
kjava-obfuscator-retroguard.nbm. Then it is supposed to work without
need to setup anything. 
ide.log you attached is almost empty I can hardly recognize anything
from it except your installdir, userdir and modules loaded (these I
tested and j2me support works as expected). I need you to do the
compile action which fails and then send ide.log. 
Thanks
-Tomas
Comment 8 thylux 2004-07-08 10:04:35 UTC
where can i download wtk21_win.nbm? i can't see it on netbeans site 
to offline instalation... that is probably the problem after all. 
i've installed all others. now i'm getting some different errors, but 
thats probably my fault, because i'm a rookie on j2me.
i had to mount some filesystems with midp classes and add them to 
code completion and javadoc in order for it to work completely.
could you tell me how to get that missing module to offline 
instalation?
Comment 9 Tomas Brandalik 2004-07-09 08:14:53 UTC
complete mobility catalogue for nb3.6
http://www.netbeans.org/catalogue/mobility.html
Comment 10 Lukas Hasik 2005-04-22 10:37:09 UTC
closing
Comment 11 Lukas Hasik 2006-06-23 17:26:24 UTC
this is old issue - 3.5, 3.6