We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9a331 commit 4da2832Copy full SHA for 4da2832
external/source/msfJavaToolkit/compile.sh
@@ -1,5 +1,15 @@
1
#!/bin/bash
2
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
13
javac -classpath $JAVA_HOME/lib/tools.jar:. javaCompile/*.java
14
15
jar -cf msfJavaToolkit.jar javaCompile/*.class
0 commit comments