aboutsummaryrefslogtreecommitdiff
path: root/setup/java-test
diff options
context:
space:
mode:
Diffstat (limited to 'setup/java-test')
-rw-r--r--setup/java-test/README.txt4
-rw-r--r--setup/java-test/Test.java5
-rw-r--r--setup/java-test/test.jarbin0 -> 846 bytes
3 files changed, 9 insertions, 0 deletions
diff --git a/setup/java-test/README.txt b/setup/java-test/README.txt
new file mode 100644
index 000000000..b8ca72a7a
--- /dev/null
+++ b/setup/java-test/README.txt
@@ -0,0 +1,4 @@
+Create Java version test:
+
+javac -target 6 -source 6 Test.java
+jar cfe test.jar Test Test.class
diff --git a/setup/java-test/Test.java b/setup/java-test/Test.java
new file mode 100644
index 000000000..363d6953e
--- /dev/null
+++ b/setup/java-test/Test.java
@@ -0,0 +1,5 @@
+public class Test {
+ public static void main(String[] a) {
+ System.exit(Integer.parseInt(System.getProperty("java.version").split("\\.")[1]) >= 7 ? 0 : 1);
+ }
+}
diff --git a/setup/java-test/test.jar b/setup/java-test/test.jar
new file mode 100644
index 000000000..9bb41b3a0
--- /dev/null
+++ b/setup/java-test/test.jar
Binary files differ