From: Ben Soares Date: Mon, 10 Dec 2018 11:01:49 +0000 (+0000) Subject: JAL-3130 tweaked build.xml to do java 11 bytecode compiling[git branchgit branch... X-Git-Tag: Release_2_11_0~17^2~7^2~58^2~13 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=36279e05d511b7f2eacc4a3e883ce9f4c75c8bcf;p=jalview.git JAL-3130 tweaked build.xml to do java 11 bytecode compiling[git branchgit branch]. updated getJavaVersion and added showJDKVersion in utils. --- diff --git a/build.xml b/build.xml index 8eeaf7f..ba88f9a 100755 --- a/build.xml +++ b/build.xml @@ -114,7 +114,7 @@ - + @@ -125,8 +125,12 @@ - - + + + + + + diff --git a/utils/getJavaVersion.java b/utils/getJavaVersion.java index 8496f8b..8e09423 100644 --- a/utils/getJavaVersion.java +++ b/utils/getJavaVersion.java @@ -139,7 +139,7 @@ public class getJavaVersion if (versions == null) { versions = new Hashtable(); - versions.put("45.3", "1.0"); + versions.put("45.3", "1.0.2"); versions.put("45.3", "1.1"); versions.put("46.0", "1.2"); versions.put("47.0", "1.3"); @@ -148,6 +148,9 @@ public class getJavaVersion versions.put("50.0", "1.6"); versions.put("51.0", "1.7"); versions.put("52.0", "1.8"); + versions.put("53.0", "9"); + versions.put("54.0", "10"); + versions.put("55.0", "11"); } String version = (String) versions.get(major + "." + minor); diff --git a/utils/showJVMVersion.java b/utils/showJVMVersion.java new file mode 100644 index 0000000..671abc4 --- /dev/null +++ b/utils/showJVMVersion.java @@ -0,0 +1,5 @@ +public class showJVMVersion { + public static void main(String args[]) { + System.out.println(System.getProperty("java.version")); + } +}