yes there's a bit of java in my nvim config why do you ask?
This commit is contained in:
13
extras/JavaVersion.java
Normal file
13
extras/JavaVersion.java
Normal file
@ -0,0 +1,13 @@
|
||||
/*
|
||||
* JavaVersion returns the version of java interpreter running it. Inspired by
|
||||
* "libraries/javacheck/JavaCheck.java" in PrismLauncher.
|
||||
*/
|
||||
public final class JavaVersion {
|
||||
public static void main(String[] args) {
|
||||
String p = System.getProperty("java.version");
|
||||
if (p != null)
|
||||
System.out.println(p);
|
||||
else
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user