This repository has been archived by the owner on Jun 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
52 lines (31 loc) · 1.37 KB
/
INSTALL
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
1. Download the latest version of the iText JAR file from:
http://sourceforge.net/projects/itext/files/
Save this file to the same directory as FormFillFlatten.java, and
rename it itext.jar.
2. Download the latest version of JSON-java from:
https://github.com/douglascrockford/JSON-java
3. Download the latest version of junit from:
https://github.com/KentBeck/junit/downloads
Save this file to the same directory as JSON-java and rename it
junit.jar.
4. Change to the directory containing JSON-java and run:
javac -classpath junit.jar:. *.java
mkdir -p org/json
mv *.class org/json/
jar cf json-org.jar org
5. Copy json-org.jar to the same directory as itext.jar
6. Run the following command to compile the Java class:
javac -classpath itext.jar:json-org.jar:. FormFillFlatten.java
You should now have a FormFillFlatten.class file.
7. Set up a new virtual host for this domain.
8. Copy public_html/index.php to the document root of your virtual host.
9. Copy the following files to the directory above the document root:
FormFillFlatten.class
itext.jar
json-org.jar
10. Edit JAVA_PATH in index.php so that it matches the path to the
java command on your system. You can find this by running:
which java
In most cases the default should suffice (/usr/bin/java).
11. Change TMP_DIR to reflect the location for temporary files on your
system. The default should be fine on Linux.