Running Hello World


Inq requires JavaTM J2SE 1.6. If necessary, download it for your platform from JavaSoft.

Start The Server

Change directory to the root of the distribution. Assuming the distribution's bin directory is on the path, start the server as follows:

inq -server

The by default, the server binds to port 6556, so this needs to be available. You should then see output like this:

Inq Server
Copyright (c) InqWell Ltd 2002-2008
Java Compiler Compiler Version 3.2 Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
DeadlockScanner Started
Server Started
speakinq Socket Listener Started on port 6556

Load The Hello World Server Script

In a separate terminal window, change to the same directory. Load the hello world application into the server as follows:

inq -load
    -u admin
    -p inqwell
    -server speakinq://localhost
    -url file:app/examples/helloworld/helloSrv.inq

Note that the -url argument specifies a relative URL. This is primarily to make these instructions the same on all platforms but, as noted elsewhere, this URL is resolved by the server, not the loader client. The relative resolution is thus with respect to the server's current working directory.

Start The Client

To start the client enter the following

inq -client

The login window should then appear - fill it in as shown:

Hello World Login

The password field cannot be blank but anything will do. All being well the application window will then show.

Typing something in the text field and hitting return will cause the label to update. Bring up a second client and you will see that text entered in one is shown in the other.

Try Different Look and Feels

Unless specified otherwise the Inq client sets the default look and feel for the platform. The Java look and feel can be specified like this:

inq -client -lookandfeel none

May be you have Nimbus:

inq -client -lookandfeel nimbus
Hello World Nimbus

Or even CDE/Motif:

inq -client -lookandfeel cde/motif
Hello World Nimbus