Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
jvx:firstapp_step-by-step [2018/01/30 10:20] admin |
jvx:firstapp_step-by-step [2018/01/30 10:31] admin |
||
---|---|---|---|
Line 54: | Line 54: | ||
* **File / New / Java Project** | * **File / New / Java Project** | ||
- | * Note that the project has to be set up in the application folder firstapp \\ {{:jvx:newproject.png?nolink|}} | + | * 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|}} | + | * **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|}} | * **Add** the ''jvx.jar'' library, from the project directory ''JVxFirstApp/libs/server'' \\ {{:jvx:newproject_libs.png?nolink|}} | ||
* The project can now be created | * The project can now be created | ||
Line 62: | Line 62: | ||
{{:jvx:project_eclipse.png?nolink|}} | {{:jvx:project_eclipse.png?nolink|}} | ||
+ | |||
+ | The ''src'' folder can be deleted for consistency, as it is not needed in our application. | ||
== Application development == | == Application development == | ||
Line 112: | Line 114: | ||
</server> | </server> | ||
</file> | </file> | ||
- | \\ | + | The server does not need any special parameters for our application. \\ \\ For the client, we now need a class of type ''javax.rad.application.IApplication''. A standard implementation of JVx is implemented via ''com.sibvisions.rad.application.Application''. We then derive our client from it and thereby create a class, in the directory ''src.client'', with the following source code: |
- | For the client, we now need a class of type javax.rad.application.IApplication. A standard implementation of JVx is implemented via com.sibvisions.rad.application.Application. We then derive our client from it and thereby create a class, in the directory src.client, with the following source code: | + | |
<file java FirstApplication.java> | <file java FirstApplication.java> |