mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 14:15:30 -04:00
initial import
This commit is contained in:
parent
e5d216f7f5
commit
85e4ab2433
5 changed files with 1213 additions and 0 deletions
23
contrib/javasupport/whichjava.java
Normal file
23
contrib/javasupport/whichjava.java
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
// $Id: whichjava.java,v 1.1 1998-03-17 07:55:30 d3e129 Exp $
|
||||
|
||||
public class whichjava implements Runnable {
|
||||
public static void main(String[] args){
|
||||
System.out.println("The Java Version in your path is " + System.getProperty("java.version"));
|
||||
if (System.getProperty("java.version").indexOf("1.1")>=0){
|
||||
// System.out.println(" should be zero status" + System.getProperty("java.version").substring(0,3));
|
||||
System.exit((int)0);
|
||||
} else {
|
||||
// System.out.println(" should be nonzero status " + System.getProperty("java.version").substring(0,3));
|
||||
System.out.println (" This code requires Java 1.1 or greater");
|
||||
System.exit((int)1);
|
||||
};
|
||||
}
|
||||
|
||||
public void init(){};
|
||||
|
||||
public void start(){};
|
||||
|
||||
public void run(){};
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue