arrow_back history picture_as_pdf This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ~~Title: First JVx application (step-by-step)~~ The aim of this tutorial is to create an application with the Enterprise Application Framework – [[https://jvx.sibvisions.com|JVx]]. Moreover, a quick overview of the framework's possibilities will be given. The application's task is to display the data from a database table and make them editable. The application requests authentification with user name and password. The following skills and tools are needed: * [[http://sourceforge.net/projects/jvx/files/latest/download|JVx Binary package]] * Eclipse IDE (>= 3.4) with JDT (recommended: Eclipse IDE for Java EE developers) * JDK 6.0 (1.6) or higher * HSQLDB library (http://www.hsqldb.org) * Database and SQL skills This documentation covers the following areas: * [[#folder_structure|JVx folder structure]] * [[#project_configuration|Eclipse project configuration]] * [[#application|Application development]] * Client * Server * [[#workscreen|Creation of a work screen]] * [[#hypersql|Use of a HyperSQL database]] == Folder structure == To develop an application with JVx, a special folder structure is recommended. This simplifies the Build process and separates any dependencies between Client and Server. This structure is to be created as follows: {{:jvx:folders.png?nolink|}} A conventional structure: {{:jvx:folders_common.png?nolink|}} can also be used on request. However, the documentation refers to the recommended structure. ^Folder^Description^ |rad|Contains application- and server-specific files.| |apps|Contains all available applications. Only one application is contained in this concrete example.| |firstapp|Contains the application with project configuration, sources, libraries.| |help|Contains the client (GWT) for the online help and help pages.| |libs|Contains all libraries which are necessary both on the client and the server.| |libs/client|Contains all libraries which are only necessary for the client.| |libs/server|Contains all libraries which are only necessary for the server.| |src.client|Contains all the sources which are only necessary for the client.| |src.server|Contains all the sources which are only necessary for the server.| |test|Contains unit tests for the client and server or the libraries.| Once the folder structure has been created, copy the library jvxclient.jar to the folder libs/client and the library jvx.jar to the folder libs/server. Both libraries are contained in the JVx binary package. == Project configuration == Once the configuration steps have been performed, a new project can be created with Eclipse: * **File / New / Java Project** * Note that the project has to be set up in the application folder firstapp. \\ {{:jvx:newproject.png?nolink|}} * **Remove** the src folder from the **Source Folders** \\ **Set** the folders ''src.client'', ''src.server'' and ''test'' as **Source Folder** \\ {{:jvx:newproject_folders.png?nolink|}} * **Add** the ''jvx.jar'' library, from the project directory ''JVxFirstApp/libs/server'' \\ {{:jvx:newproject_libs.png?nolink|}} * he project can now be created The project is shown in Eclipse as follows: {{:jvx:project_eclipse.png?nolink|}} == Application development == On the server side, the application needs a configuration file for the settings that only concern the application. For the configuration of the server, an extra configuration file is needed. First we create the file for the application: