Official Content

Lets the generator know in which Java package it must generate the programs.

Description

Generally, packages have the following name format:

com.company.product

For example: “com.artech.siscli”.

If a package is specified, source programs will be generated in the subdirectory of the model directory matching the package name. For example, in the previous case, sources are generated in directory com\artech\siscli of the model directory.

The value set by this model property is considered when compiling and executing and this is transparent to the GeneXus user.

Values

Default value: com.<Kb name>

The default value for new Kbs is com.<Kb name>.

In case of Kbs migrated from previous versions, if the Java Package name property is empty, it is kept as it is.

As the property needs to have a value different than null when using Modules, the GeneXus user will be asked to enter a value for the property when he creates the first Module in the KB.

Considerations Note:

The package name should be specified in lower case as it is recommended by Oracle here. However you can use with upper case if you like, but being carefull with the url used. For example, if the package name is com.Artech.Test, then the classes will be copied to the web-inf\classes\com\Artech\Test and the link to execute this webapp must be http://<appserver>:8080/<webappname>/servlet/com.Artech.Test.webpanel1. The F5 in Genexus will not considerate this at runtime, so it must be changed by the developer.

Scope

Platforms: Web(Java)

Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant