Skip to content

Commit 4da2832

Browse files
author
Brent Cook
committed
expound on java signer build instructions
1 parent 7e9a331 commit 4da2832

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

external/source/msfJavaToolkit/compile.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
#!/bin/bash
22

3+
# This requires Java 1.7 or earlier because it uses private APIs.
4+
# See http://kris-sigur.blogspot.com/2014/10/heritrix-java-8-and-sunsecuritytoolskey.html
5+
# for more information.
6+
7+
# Attempt to use Java 1.6 when building on OS X, otherwise JAVA_HOME needs to
8+
# be set manually.
9+
if [ -x /usr/libexec/java_home ]; then
10+
export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)
11+
fi
12+
313
javac -classpath $JAVA_HOME/lib/tools.jar:. javaCompile/*.java
414

515
jar -cf msfJavaToolkit.jar javaCompile/*.class

0 commit comments

Comments
 (0)