All I want is the JavaEE6 documentation displayed in my JavaSE project. Perhaps this is not possible.
The problem is that I created a simple JavaSE project (i.e. New Project β Java β 'Java Application') in NetBeans, but I have Java Enterprise Edition elements in it.
One of these elements is the javax.persistence @Basic annotation (fetch / optional).
- When I press ctrl + space in this annotation, NetBeans says: " Javadoc not found. ". When I use Alt + F1 ( Right-click β "Show Javadoc" ), the status bar says: " Cannot run Show Javadoc here . '.
Additional Information:
1) netbeans_installation_dir \ NetBeans 7.0.1 \ enterprise \ docs contains the required API documentation file ( javaee6-doc-api.zip ).
2) I looked at stackoverflow for similar solutions, but they didnβt work for me - adding .jar / .zip / folder to the library or through 'Tools β Java Platforms β Javadoc Tab β do not work.
It is very strange when I add javaEE6.jar to the Javadoc tab of the JDK6 platform, and in the Project Structure window, I directly click on the JDK1.6 library with the Show Javadoc library, a browser window opens and I see the JEE6 documentation as I wanted.
I assume the problem is that I have a regular JavaSE project and NetBeans cannot get JavaEE6 javadoc because it does not know that my application partially uses EE elements. This is probably also due to the fact that this documentation is intended for JavaEE6 applications (therefore, it is located under the / enterprise folder).
So I donβt know how to fix it. This is mistake? (I read in the NetBeans bug report that this might be a possible bug).
source share