-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
68 lines (44 loc) · 2.47 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
See ../README for general information and generic instructions.
Also see ../LICENSE for legalese regarding use of this distribution.
Also see ../IMPORTANT for some important notes that you mustn't overlook.
Cassowary/Java was developed using the JDK 1.1.3 port for Linux. It has
been tested with JDK 1.1.7 for Linux, also.
Before trying to build Cassowary/Java, be sure to include the directory
java/classes in your CLASSPATH environment variable, e.g., if you untar
the distribution in $HOME, then add: $HOME/cassowary/java/classes to
your $CLASSPATH. My CLASSPATH looks like this:
/usr/local/.licensed/jdk/lib/classes.zip:/homes/gws/gjb/cassowary/java/classes
Be sure you give configure the '--enable-java-build' option if you want
this directory to be processed. Then you can just use `make all' (GNU
Make) to build the .class files.
If you want to use the Java parser, you need the JavaCup package:
http://www.cs.princeton.edu/~appel/modern/java/CUP/
Be sure to get at least v10k-b2 or later. You'll also need JLex from:
http://www.cs.princeton.edu/~appel/modern/java/JLex/index.html
Uncompress the JavaCUP package from a directory that is contained in
your $CLASSPATH. Also put JLex's single Main.class into a directory
in your $CLASSPATH and compile it. Then run
java java_cup.Main < ClReader.cup
to create parser.java, sym.java. (The makefile does this for you if
JavaCUP and JLex .class files are in your $CLASSPATH as described above).
Cassowary was tested with java_cup_v10k.tar.gz.
Try running ClTests after the build completes. Be sure your CLASSPATH
is set correctly (as discussed above) and do:
java ClTests
The demos/ subdirectory contains the quadrilateral demo; `make run'
should run it using the appletviewer after building it. If you get
a:
java.security.AccessControlException: access denied (java.io.FilePermission ...)
error with Java 2, you may need to update your $HOME/.java.policy file.
You can try making it containt the below three lines (BEWARE: this may
be dangerous from a security perspective):
grant {
permission java.security.AllPermission;
};
The cda/ subdirectory contains Michael Noth's Constraint Drawing
Application. `make run' from the cda/ directory should run it using the
appletviewer after building it. For more information about the CDA,
see:
http://www.cs.washington.edu/research/constraints/cda/info.html
The CDA is supplied as *unsupported* software. Feel free to submit bug
reports, etc., but we do not expect to maintain the code.