Chapter 4. How to develop a standard PC application?

[Note]Note
In this context the term standard PC application is used to denote any application that runs on a machine with a JVM (Java Virtual Machine) installed. For example: a desktop PC with Linux, Mac OS X, Unix or Windows, a server, a tablet PC, a mobile device or any other device that supports Java.

To create, compile and run an application (still just to say Hello to the world) do the following:

To package your application into a single file for deployment on other PCs:

To install your application on another PC, follow the steps below:

[Note]Note

Installing an Obix application on a PC can sometimes be tricky, because you never know if Java is already installed, which version is installed (or which versions are installed) and where it is (they are) installed. Because Obix generates a Java application, the problematic of installing an Obix application are the same as those for installing a pure Java application. Therefore, if you need a deployment that allows inexperienced users to easily install an application, (including the automatic detection, version checking, and installation of the Java runtime) then it might be a good idea to use third-party products for easiest automatic installations. By searching something like 'deploying java applications' on the net, you can find different products that meet different needs, including tools that create self-extracting .exe or .msi files for Windows.

Alternatively, you could also deliver your application by providing a self-extracting file with the appropriate Java version bundled together with your application.

Because one of the goals of Obix is to make everything as easy as possible for developers and users, especially in the case of recurring tasks, it is possible that future versions of Obix will provide more support for quick and easy deployments (e.g. just download a file and execute it).


For more examples of standard PC applications, such as command line utilities and console input/output applications, as well as on how to use additional Java libraries (.jar file), please have a look at the examples in the projects directory.