Running Hello World
Requirements
Inq requires JavaTM J2SE 1.5 or better. If necessary, download it for your platform from JavaSoft.
The Inq distribution 1.0.2 or later contains the Hello World example. Please download it by referring to the download instructions.
Start The Server
Change directory to the root of the distribution, e.g.
cd \inqwell\inq1_0_2
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 chat application into the server as follows:
inq -load
-u admin
-p inqwell
-serverHost speakinq://localhost
-package system.server
-url file: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:

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.
If You Get Look-And-Feel Problems...
Unless specified otherwise the Inq client sets the default look and feel for the platform. When this is GTK under Linux we have experienced some problems with missing (or perhaps differently named) UIDefaults. If this is the case exceptions are thrown and the client does not run. For the time being you can switch to the Java L&F:
inq -client -lookandfeel none
Take a look at the next example, a chat application, to discover more of Inq's capabilities.
