aboutsummaryrefslogtreecommitdiff
path: root/setup/java-test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-09 10:49:57 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-09 10:49:57 +1200
commitcc3d3021981a799c8c9d28dad4ad9bffa320a370 (patch)
tree8a1f5af8a5f5a6c12a658c9a466372337f9c01f1 /setup/java-test
parent526ae13099da044a0feeb5afc07563bea0f29c7f (diff)
downloadtraccar-server-cc3d3021981a799c8c9d28dad4ad9bffa320a370.tar.gz
traccar-server-cc3d3021981a799c8c9d28dad4ad9bffa320a370.tar.bz2
traccar-server-cc3d3021981a799c8c9d28dad4ad9bffa320a370.zip
Modify installation scripts
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