Official Content

This article outlines the Java Generator requirements for development work.

Java SDK

To build Java applications, keep in mind the relationship between Gradle and Java versions, which is available here: Compatibility Table.

DBMS Drivers 

At build time, an internet connection to is required in several cases; for example, to get the required version of a DBMS driver.

However, in the case of the SAP HANA Database, the necessary drivers are not available, so you must download the files from the SAP Hana Client for Windows and copy the JAR file to the "lib" folder of the model's web folder. 

The same is true for DB2 Universal Database. Therefore, you must perform the same procedure. 


The following error will be displayed if there are version compatibility problems between Gradle and Java:

Could not open proj generic class cache for build file

The solution is to install a newer version of Gradle. To do this, follow the steps below: 

  1. Check the Compatibility Table and select the minimum version of Gradle that supports the JDK you want to use.
  2. Download the latest major version of Gradle that has been released according to the previous step.
    You can check these pages for the available version: Gradle Distribution and Gradle Installation.
  3. Open the command line (CMD) and navigate to the GeneXus installation folder on your computer, specifically to the gxjava directory. For example: "c:\Program Files (x86)\GeneXus\GeneXus18\gxjava". Run the following command:
    gradlew wrapper --gradle-version=<enter version> --distribution-type=bin
    When you run this command, the Gradle version that you downloaded will be configured to be used in the next action performed in the folder. This allows the new version of Gradle to be available for any Knowledge Base (KB) construction in GeneXus.
  4. To update the Gradle configuration in the KB directory that gave the error, in the GeneXus Toolbar select Tools >CMD Environment Directory, and open the Windows command console (CMD). Next, navigate to the Web folder of the model that uses the Java Generator and execute the command from the previous step.  


Suppose you want to use JDK 19, for which the minimum Gradle version supported is 7.6. After checking the Gradle distribution, you realize that version 7.6.1 exists and you install it. Go to the cmd and navigate to the GeneXus installation folder and execute the command:

gradlew wrapper --gradle-version=7.6.1 --distribution-type=bin

Now go to GeneXus, open the Web folder of the model (C:\KB\LightCRM\JavaEnv\web), and execute the same line. If everything is OK, you will get a message like the following: 

Configure project :
apply services.webnotifications.genexus.gradle

1 actionable task: 1 executed

c:\KB\LightCRM\JavaEnv\web>gradlew getDeps

Welcome to Gradle 7.6.1!

Here are the highlights of this release:
 - Added support for Java 19.
 - Introduced `--rerun` flag for individual task rerun.
 - Improved dependency block for test suites to be strongly typed.
 - Added a pluggable system for Java toolchains provisioning.

For more details see

Starting a Gradle Daemon (subsequent builds will be faster)

See Also

GeneXus 18 hardware and software requirements


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