WINDEV Concepts

84 Part 2: Development environment 2.2 JAVA RAD As with any project associated with an analysis, you can use the RAD methodology to generate the windows of your application. The RAD methodology takes into account all the specific features of Java generation (controls, processes, functions that can be used in a WINDEV application generated in Java). Regardless of the type of window to generate, the first screen of the wizard allows you to enter the type of connection to the database: • HFSQL (in Windows or Linux): the standard window creation wizard appears. • JDBC: you can specify the parameters for connecting to the database that uses the JDBC driver. 2.3 Test a Java project in the editor When a Java project is tested ( ), the project is compiled and run in Windows. The project is not compiled in Java. To run the Java application, you must run the ".Jar" file located in the EXE directory of the project. 2.4 Compiling a Java project in WINDEV A Java project is compiled to: • identify programming errors in the WLanguage code • see controls, events and WLanguage functions that are not available in Java. These errors appear in purple in the "Compilation errors" pane. For more details on WINDEV elements not available in a Java application, see the online help. Remark : as mentioned in the "What is a Java application?" section, the Sun J2SDK must be installed on the development computer to compile your project in Java. 2.5 Creating a Java archive WINDEV allows you to: • create and compile in a Java compiler the different Java files required by the application. • create a Java archive that can be run directly: • a standard Java application, • a Java Web Start application. To create the Java archive, all you have to do is create the executable: on the "Project" tab, in the "Generation" group, click "Generate". A wizard helps you create the Java archive. 2.6 Deploying a Java application Like for any application, WINDEV allows you to create a setup program for Java applications. This setup procedure is available for Windows only. The setup program is an executable. It can be used to install the necessary files as well as the Java Runtime Environment (JRE). For other platforms, you need to deploy your files manually. To start the setup creation wizard, go to the "Project" tab, "Generation" group and click "Setup procedure". For more details, see the online help (keyword: "Java").

RkJQdWJsaXNoZXIy NDQ0OA==