DJ (Declarative Java) is an extension of Java that supports constraint
programming over finite-domains. DJ can be used for two purposes:
Firstly, DJ can be used for constructing graphical user interfaces =
(GUIs).
Unlike in Java where the users have to choose appropriate layout
managers and sometimes have to determine the sizes and positions of
graphical components, the users of DJ only need to specify the
components that compose a GUI and the relationship among the
components by using constraints. The geometric attribute values of the
components are all determined by the system. Secondly, DJ can serve
as a general tool for describing and solving Constraint Satisfaction
Problems (CSPs). For a CSP, the user can not only describe the
variables and the constraints in the problem, but also describe how to
display the solutions graphically. =20
Required Environment
Executable binaries are available for PC (Windows95/NT) and Sparc(SunOS=20
or Solaris) in this package. For other platforms, you need to first=20
install B-Prolog Version 3.0=20
(http://www.cad.mse.kyutech.ac.jp/people/zhou/bprolog.html)
File Configuration
dj_sparc.tgz --- executable binaries for sparc
dj_win.exe --- executable binaries for Windows-95/Windows-NT
copyright --- copy right notice
examples/ --- example programs and the compiled Java and HTML =
files
src/ --- source files of the DJ compiler (runnable in =
B-Prolog)
doc/html/ --- the manual in HTML format
doc/manual.ps --- the manual in post script format
Install on Sparcs
create a directory called "dj" in your home directory.
save the file "dj_sparc.tgz" in the "dj" directory.
uncompress and extract the files.
add "$HOME/dj" to the "path" environment variable
now "dj" becomes a command for compiling DJ programs into Java. =
Type
"dj -help" to see how to use the command.
Install on Windows-PC
create a directory called "dj" in the "C:\" the driver.
save the file "dj_win.exe" in the "dj" directory.
extract the files by typing "dj_win".
add "C:\dj\windows" to the path environment variable
now "sh dj" becomes a command for compiling DJ programs into Java.=20
Type "sh dj -help" to see how to use the command.
Correspondence
Send bug reports and/or suggestions to:
Neng-Fa Zhou
Faculty of Computer Science and Systems Engineering
Kyushu Institute of Technology
680-4 Kawazu, Iizuka, Fukuoka, Japan
Tel. 0948-29-7774 Fax. 0948-29-7760 =20
zhou@mse.kyutech.ac.jp