Skip to main content

LWUIT javadoc in Netbeans ?

8 replies [Last post]
nic_r
Offline
Joined: 2008-07-11
Points: 0

Hi,

Another stupid question ?

I've just started using Netbeans for mobility development, and am having a problem getting LWUIT documentation to appear in the Netbeans IDE. Can anyone help ?

I've got the JDK Javadoc appearing just fine for the 'J2ME' platform (or more specifically the 'Sun Java Wireless Toolkit 2.5.2' platform) but specifying the folder or the zip file for the LWUIT stuff just doesn't work ! The 'index.html' and 'package-list' files are there, so what's wrong ? I've even tried moving the reference to the folder up to the top of the list (there's quite a few in there) but no luck.

I'm tearing my hair out !

Thanks,

Nic

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
nic_r
Offline
Joined: 2008-07-11
Points: 0

Yes, thanks Shai for explaining how to do this, and I'm glad at least one other person found it useful !

Now all we need is to get the Javadoc to appear when you hover over something with the pointer, like it does in Eclipse.......

Alt-F1 to get it to appear in a separate browser window just doesn't do it for me (perhaps I'm too impatient ?).

petiex
Offline
Joined: 2006-11-13
Points: 0

Ctrl+[space-bar]

petiex
Offline
Joined: 2006-11-13
Points: 0

I've been wondering how to do this for years! By following your directions, I come to find out you can also indicate the location of the javadocs and source files for each individual jar dependency in a project. From the Libraries panel in the project properties window, if you select a jar file, you can click Edit, which pops up a window for indicating the location of those resources. Or, since the default values for these locations is in the format, ${javadoc.reference.myJar.jar} and ${source.reference.myJar.jar}, I suppose you could indicate these things in your project.properties file.

Anyway, cool. This was NOT a stupid question.

Shai Almog

Hi Nic,
try the following (assuming NB 6.1 but pretty similar for 6.0):
1. Don't extract the javadoc zip.
2. Right click your project and select "Properties".
3. Select "Libraries & Resources"
4. Select "Add Library...".
5. Press "Edit" to create a new library in the library manager.
6. Press "New Library..."
7. Type "LWUIT" and click "OK".
8. Make sure "LWUIT" is selected in the left hand side of the library
manager.
9. In the "Classpath" tab of the library manager click "Add Jar/
Folder..." and select LWUIT.jar.
10. Select the javadoc tab of the library manager and click "Add ZIP/
Folder...", select the javadoc zip.
11. Click OK to close the library manager.
12. Cancel the "Add Library" Dialog and open it again. LWUIT should
now appear, select it and click "Add Library" to add it to the project.

JavaDoc completion should work for you in NetBeans now.

Thanks,
Shai.

> Hi,
>
> Another stupid question ?
>
> I've just started using Netbeans for mobility development, and am
> having a problem getting LWUIT documentation to appear in the
> Netbeans IDE. Can anyone help ?
>
> I've got the JDK Javadoc appearing just fine for the 'J2ME'
> platform (or more specifically the 'Sun Java Wireless Toolkit
> 2.5.2' platform) but specifying the folder or the zip file for the
> LWUIT stuff just doesn't work ! The 'index.html' and 'package-list'
> files are there, so what's wrong ? I've even tried moving the
> reference to the folder up to the top of the list (there's quite a
> few in there) but no luck.
>
> I'm tearing my hair out !
>
> Thanks,
>
> Nic
> [Message sent by forum member 'nic_r' (nic_r)]
>
> http://forums.java.net/jive/thread.jspa?messageID=287338
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

InJava
Offline
Joined: 2011-10-12
Points: 0

Hi Shai,

I tried all that you said. Library got added without any error. But even now, when I ctrl+[spaceBar] something, it says javadoc not found.

Say for example, i created a form.. by click ctrl+spaceBar on "Form", it says, no javadoc found.

Please help me out.

vprise
Offline
Joined: 2003-11-07
Points: 0

remove the old LWUIT Jars you might have included.

Please try to avoid posting to old threads, open a new topic and include a link to this. Reopening makes the thread hard to follow.

rapiz
Offline
Joined: 2009-03-16
Points: 0

Sorry for bringing this old subject...

I tried what shay has said, but when i try to add the javadocs.zip i get an error:
"Invalid javadoc root c:\...
The javadoc root does not contain the index-files folder or index-all.html file"

after the error the javadoc is added to the "library javadoc" tab but it doesn't work.
I also try to unzip the folder and add it - no luck.

as far as i can see the "index-all.html" file is missing, what's wrong here and how can
i fix this?

Netbeans 6.1 and LWUIT 1.2

btw
when i used the lwuit version from the SVN i had javadocs...

reagards
or

Shai Almog

I think netbeans expects the docs to be in a directory called "docs"
within the zip. Try expanding the zip and pointing at the directory.
> Sorry for bringing this old subject...
>
> I tried what shay has said, but when i try to add the javadocs.zip i get an error:
> "Invalid javadoc root c:\...
> The javadoc root does not contain the index-files folder or index-all.html file"
>
> after the error the javadoc is added to the "library javadoc" tab but it doesn't work.
> I also try to unzip the folder and add it - no luck.
>
> as far as i can see the "index-all.html" file is missing, what's wrong here and how can
> i fix this?
>
> Netbeans 6.1 and LWUIT 1.2
>
> btw
> when i used the lwuit version from the SVN i had javadocs...
>
> reagards
> or
> [Message sent by forum member 'rapiz' (rapiz)]
>
> http://forums.java.net/jive/thread.jspa?messageID=358060
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

--
Shai Almog

LWUIT Blog http://lwuit.blogspot.com/
LWUIT FAQ https://lwuit.dev.java.net/faq.html
YouTube Channel http://www.youtube.com/user/vprise
Applications in LWUIT https://lwuit.dev.java.net/nonav/featuredapp.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net