PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Principle for generating a Java application with WINDEV
  • Creating a Java project
  • Creating the project
  • Modifying the type of generation for the project
  • Characteristics of a Java project
  • RAD available in Java
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview

Principle for generating a Java application with WINDEV

WINDEV allows you to generate a Java application without even knowing the Java language. The method for developing the application is identical to the method for developing any other WINDEV application.
When the WINDEV project is compiled, the windows and the WLanguage functions are automatically converted into Java.
Note: We advise you create a new WINDEV project to develop a Java application rather than transform a WINDEV application into Java.
Creating a Java project

Creating the project

A Java project is created like any other WINDEV project. All you have to do is select "File .. New .. Project". The wizard for project creation starts.A Java project is created like any other WINDEV project.
To create a project:
  • Click among the quick access buttons.
  • Click "Project" in the wheel that is displayed. The window for creating a new element is displayed: click "Project".
  • The wizard for project creation starts.
In one of the first screens, the wizard allows you to choose the generation mode of your project. To do so, select "Java archive" and continue.
Once your project is created, you develop in WLanguage like for any other WINDEV application.
Note: The number of WLanguage functions that can be used in a Java project is limited in this version. This number of functions will increase in the forthcoming versions. See Functions available in Java for more details.

Modifying the type of generation for the project

By default, a WINDEV project for Java corresponds to a specific project configuration. The type of generation for the project can be modified at any time. All you have to do is create a new project configuration.
To manage the project configurations, select "Project .. Project configurations .. Configuration management". See The project configurations for more details.To manage the project configurations, on the "Project" pane, in the "Project configuration" group, click "Manage the configurations". See The project configurations for more details.

Characteristics of a Java project

As soon as the project is configured as a Java project, all the tools available in WINDEV are automatically configured for the Java project:
  • The compilation of the project indicates whether your project contains functions or controls that cannot be used in Java.
  • Creating the archive is used to generate a ".jar" file in the EXE directory of the project.
  • The setup module of the application only handles the files required for deploying the Java application.
Note: We advise you create a new WINDEV project to develop a Java application rather than transform a WINDEV application into Java.

RAD available in Java

On a Java project that handles data files, you have the abomotu to use the Full il Application RAD or the Window RAD (Simple RAD).
To use a RAD pattern other than the Simple RAD, the generated code will have to be adapted to operate in a Java application.
Related Examples:
WD JavaMail Training (WINDEV): WD JavaMail
[ + ] This example is a Java example used to create an applet.
This applet can then be used in an Internet page.
This applet enables you read and send emails.
In this project, a second configuration enables you to manage a "Standard" Java application (.jar).
To generate the Java applet and the "Standard" Java application, select "Workshop - Java - Generate the Java archive",
for each one of the two configurations of project.
WD Managing the Java errors Training (WINDEV): WD Managing the Java errors
[ + ] WINDEV enables you to develop Java applications without even knowing Java.
You benefit from the power and from the automated processes of the WINDEV environment.
One of the most useful automated processes is the automatic management of errors.
This example presents the operating mode and the implementation of the mechanism for managing the WINDEV errors.
Some illustrations allow you to understand the simplification performed when implementing this feature.
This project is configured to generate a Java archive.
WD Java Chart Designer Training (WINDEV): WD Java Chart Designer
[ + ] WINDEV enables you to create some Java applications without even knowing Java.
You program with a 5GL (WLanguage) and WINDEV generates the Java code.
The drawing functions of WINDEV are available in Java generation.
This example explains how to create charts with these drawing functions.
Three types of charts are presented in this example:
- the bar chart,
- the scatter chart,
- and the line chart.
WD JAVA Calls Training (WINDEV): WD JAVA Calls
[ + ] WD JAVA Calls is an example containing two configurations of project:
- A "Windows Application" configuration that is used to create the executable of the application
- A "Java Application" configuration that is used to create the Java archive (.JAR) of the application
This example is supplied with a JAR archive named "JavaFunction" external to the application.
It presents the call to the methods of classes of this JAR archive via the WLanguage function named JavaExecuteFunction.
This example also explains how a memory table can be filled (identical in Java mode and in Windows mode)
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment