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 132398 - "Cannot perform Show Javadoc" with Freeform Project Template
Summary: "Cannot perform Show Javadoc" with Freeform Project Template
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Freeform (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-09 13:21 UTC by timmhelbig
Modified: 2008-09-03 10:31 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 timmhelbig 2008-04-09 13:21:08 UTC
Hi,

3rd Party Javadocs never show up, no matter if I press ALT F1 or click on the Classname and use the Context Menu. The
Javadoc JAR Files had been made available either (or both!) adding the Javadoc to a new Library or in the Platform
Manager under Javadoc. The only message i get (since 6.1 beta) is "Cannot perform Show Javadoc from here". 

I'm using Freeform Projects, and I never testet this with any other Project Templates. 

This has been verified with JDK 1.5.0_13/14 and jdk 1.6_03/04/05 using NB 6.0, 6.01 and 6.1 Beta. I also searched the
Mailingslist and the web for this one.

I'm still stuck with NB 5.5.1 due to this error!
Comment 1 Jana Maleckova 2008-04-11 11:55:21 UTC
reassign to java for evaluation
Comment 2 Jiri Prox 2008-04-14 10:41:29 UTC
The javadoc should be added in Library Manager.
Does the jar in library definition match the jar in project properties sources? 
Has the folder/archive with documentation right structure (e.g. there is no additional directory in path, etc...)?

If all above is set up correctly, please provide sample project. Thanks
Comment 3 timmhelbig 2008-04-14 14:43:11 UTC
>The javadoc should be added in Library Manager.
I know! That's the way it worked under NB 5.5.1

> Does the jar in library definition match the jar in project properties sources? 
What do you mean? I have to add some third Party Javadoc to the Library Manager and into the Project?

> Has the folder/archive with documentation right structure (e.g. there is no additional directory in path, etc...)?
Yes. It is simply the output from the Javadoc ANT Task. No additional Directory, Files or whatsoever.

> If all above is set up correctly, please provide sample project. 
Excuse me! But I not having the time to provide you with a sample Project.

It seems, I didn't explain it well, so I do it again:

1) Create a Project, using the Template "Web Application with existing Ant Script"
2) Add a third party Javadoc (e.g. Wicket) to the Library Manager (Path or Archive, doesn't matter)
3) Create a Java File and write public class MyApplication extends WebApplication {}. The latter is a class from 
Wicket. Now try to get the Javadoc shown, either using alt-f1 or the Context Menu. The Message "Cannot Perform Show 
Javadoc from here" appears in the Status Bar.

The funny thing is: This only happens with the described Template, but NOT if you use the "Web Application" Template. 
I need my own ANT script, that's why I can't use this Template.

Comment 4 Jiri Prox 2008-04-15 14:38:13 UTC
> What do you mean? I have to add some third Party Javadoc to the Library Manager and into the Project?

I've meant that the jar in Classpath tab of library definition must be the same jar as in Java Sources Classpath list in
project properties
Comment 5 timmhelbig 2008-04-15 21:25:34 UTC
Yes, all added third party jars are from the same location and the same release.
Comment 6 timmhelbig 2008-04-24 13:25:21 UTC
I checked NB 6.1 RC 2. With the Freeform Template (SE or Web) it's still the same. I noticed that it is not possible 
to add a Library via Tools/Libraries, but it is not possible to add any Library to a Freeform Project. Works as 
designed?

I will therefore migrate to "Project with existing sources" Template. With that it is no problem to add the Library 
and then see the Javadoc Pages. I still use my Build Process in overloading the desired Targets in the Top Level Ant 
Script.

NB 6.x is a great step forward. Thank you!
Comment 7 timmhelbig 2008-04-24 13:31:44 UTC
Sorry, I wrote bullshit: The second Sentence must be read:

I noticed that it is possible to add a Library via Tools/Libraries, but it is not possible to add any Library to a 
Freeform Project.
Comment 8 Milan Kubec 2008-09-03 10:31:26 UTC
I'd like to resolve the issue. Freeform projects do not support adding libraries, only JAR files and folders are
supported. I'm closing the issue, because I'm not able to reproduce the issue. If you can still reproduce please provide
step by step howto. Thanks.