Official Content

The GeneXus Java Generator Standard Classes and their dependencies are downloaded from the Internet. So, to install the necessary drivers the computer must be connected to the Internet at least once.

In order to use Gradle on a computer without internet access, you must follow these steps:

  1. Make sure you have a computer with Internet access.
  2. Go to Tools >CMD Environment Directory, and open the Windows command console (CMD).
  3. Navigate to the Web folder of a model that uses the Java Generator.
  4. Run the Gradle's getDeps command to download the necessary packages to a local directory (by default it will be C:\Users\<user>\.gradle\caches\modules-2\files-2.1). In addition, the DBMS to be used must be specified. The available DBMS are as follows:
    • SQLSERVER
    • ORACLE
    • POSTGRESQL
    • MYSQL
    • DB2ISERIES
    • DAMENG

Note: If you need a DBMS that is not in the list above you must download the driver from the provider's site and copy it into the lib folder.

After downloading the packages required by the Java Generator to the local directory, the KBs can be generated and compiled even without an internet connection.

In addition, it is possible to copy the downloaded folders to an offline computer to be able to compile the same KB. For that, you need to copy the folders .gradle and .m2 from C:\Users\<user>\ of the online computer to the same path on the computer without an internet connection.

Notice that this operation must be done every time a GeneXus upgrade is installed, as internal dependencies are updated.

Samples 

To use the Oracle or SQL Server DBMS, execute the following command:

gradlew getDeps -PJAVA_PLATFORM="both" -PSQLSERVER -PORACLE

Considerations

To work with SAP HANA Database follow the steps below:

  1. Download and install the SAP HANA client from SAP's website
  2. Download the SAP HANA JDBC driver from a Maven repository such as https://mvnrepository.com/artifact/com.sap.cloud.db.jdbc/ngdbc.
  3. Configure the JDBC connection in Genexus and add the downloaded JDBC driver to the Genexus classpath. As shown in Error in the first table creation when you use SAP HANA database
  4. Create a connection to the SAP HANA database using the JDBC connection information. As shown in Data Store Configuration.

Note that this must be done with an Internet connection and once you have downloaded the necessary packages for the Java generator to the local directory, the KBs can be generated and compiled even without an Internet connection.

Troubleshooting

  1. If there are dependency problems, build your KB on the computer with an internet connection to download the missing dependencies.

Availability

This feature is available since GeneXus 18.

 

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant