Re: Javadoc generation from within NetBeans

2021-02-21 Thread Bradley Willcott

Hi Glenn,

I am using NB 12.1 on Linux.

When I right right-click on a project, then "Properties" -> "Actions" : 
"Generate Javadoc", I get this under 'Execute Goals:' "compiler:compile 
javadoc:javadoc".


I have no problems using the Generate Javadoc menu option on the project 
right-click menu.


Oh, by the way, this is the default setting :)

Regards,
Brad.

On 21/2/21 8:05 am, Chris Marusich wrote:

Hi Glenn,

Glenn Holmer  writes:


Is anybody else having trouble getting NetBeans to generate Javadoc?
I've got a modular project (source level 11) that builds and runs
successfully (other programs can call into it by declaring the
module), but when I click "Generate Javadoc" from the project menu, I
get

"Exit code: 1 - error: module not found: org.lyonlabs.d64"

That's the module name of the project itself. I made sure to be using
the latest maven-javadoc-plugin (3.2.0), with source set to 11. I get
the same result with "mvn javadoc:javadoc" from the command line. If I
change the POM for maven-javadoc-plugin to 8, I get
beautiful and complete Javadoc, although of course without any module
information.

See:

   https://issues.apache.org/jira/projects/MJAVADOC/summary

"Maven Javadoc Plugin

NOTE: when working with the Java Platform Modular System, be aware that
the javadoc tool requires the compiled code, hence try to run mvn
compile javadoc:javadoc before filing an issue."

I.e., try running this explicitly: mvn compile javadoc:javadoc

Seems like NetBeans ought to do this for you when you ask it to build
Javadocs, but for some reason it doesn't.  You have to invoke Maven
explicitly (which you can do from the IDE), and you have to say "mvn
compile javadoc:javadoc".  Just "mvn javadoc:javadoc" is not enough.

-- Chris


Creating NetBeans installers - OpenJDK

2021-02-21 Thread Paulo Alfredo Ribas Toledo

Hello,
I am using GitHub's netbeans-12.2.2.tar.gz file to recreate NetBeans 
version 12.2.2 in the following environment: Linux Fedora 33 and OpenJDK 
11.0.10


To compile and create the zip file that will serve as the basis for 
creating the installers, I use the following commands:

export JAVA_HOME = / usr / lib / jvm / java-openjdk /
export ANT_HOME = / usr / share / ant /
ant build -Dcluster.config = full -Dpermit.jdk9.builds = true

The zip file is created normally, but when using the shell script 
‘installer.sh’, I get the following messages:


===

BUILD FAILED

/home/user/Downloads/NetBeans/netbeans-12.2.2/nbbuild/installer/infra/build/build.xml:656: 
The following error occurred while executing this line:


/home/user/Downloads/NetBeans/netbeans-12.2.2/nbbuild/installer/infra/build/build.xml:691: 
The following error occurred while executing this line:


/home/user/Downloads/NetBeans/netbeans-12.2.2/nbbuild/installer/infra/build/build.xml:673: 
The following error occurred while executing this line:


/home/user/Downloads/NetBeans/netbeans-12.2.2/nbbuild/installer/infra/build/build.xml:990: 
The following error occurred while executing this line:


/home/user/Downloads/NetBeans/netbeans-12.2.2/nbbuild/installer/infra/build/build.xml:919: 
The following error occurred while executing this line:


/home/user/Downloads/NetBeans/netbeans-12.2.2/nbbuild/installer/infra/build/build.xml:846: 
The following error occurred while executing this line:


/home/user/Downloads/NetBeans/netbeans-12.2.2/nbbuild/installer/infra/build/nbi_all/nbi/infra/build/.common/common.xml:584: 
The following error occurred while executing this line:


/home/user/Downloads/NetBeans/netbeans-12.2.2/nbbuild/installer/infra/build/nbi_all/nbi/infra/build/.common/common.xml:698: 
exec returned: 1



Total time: 50 seconds

+ ERROR_CODE=1

+ '[' 1 '!=' 0 ']'

+ echo 'ERROR: 1 - NBI installers build failed'

ERROR: 1 - NBI installers build failed

+ exit 1

+ ERROR_CODE=1

+ '[' 1 '!=' 0 ']'

+ echo 'ERROR: 1 - NBI installers build failed'

ERROR: 1 - NBI installers build failed

+ exit 1

===

What should I fix in the ‘installer.sh’ file so that the installers can 
be created correctly with OpenJDK?


Regards

Paulo Alfredo




installer.sh
Description: application/shellscript

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists