jDesktop application server is a JavaScript runtime built on Chrome’s V8 JavaScript engine. The application server is multi-threaded and uses event-driven, non-blocking I/O model that makes it lightweight and efficient for running separate isolates of javascript applications.

Application structure

jdesktop applications has some required files and the rest is up to the developer:
/
| – client.js -> Client side source code
| – client.html -> GUI design for the main application window
| – client.css -> Stylesheet for the main window
| – server.jss -> Server side source  code

Applications’ path

Web applications created by jDesktop developer are stored at the folder: /var/www/html and can be access by a browser (after it is started) at http://[yourip]/[application name]/

Server configuration

The main configuration file for jDesktop application server can be found at /etc/jdesktop/jdesktop.conf

Starting and Stopping jDesktop server

To start the jDesktop server use the systemd’s start command. If you are running as a non-root user, you will have to use sudo since this will affect the state of the operating system:

sudo systemctl start jdesktop.service

To stop a running jDesktop server, you can use the stop command

sudo systemctl stop jdesktop.service

Enabling and Disabling Services

The above commands are useful for starting or stopping jDesktop during the current session. To tell systemd to start jDesktop server automatically at boot, you must enable it.

To start the server at boot, use the enable command:

sudo systemctl enable jdesktop.service

To disable the service from starting automatically, you can type:

sudo systemctl disable jdesktop.service

Keep in mind that enabling a service does not start it in the current session. If you wish to start the service and enable it at boot, you will have to issue both the start and enable commands.

Checking jDesktop server status

To check the status of the server on your system, you can use the status command:

systemctl status jdesktop.service

This will provide you with the server state.