Skip to content

Instantly share code, notes, and snippets.

@maxrp
Created October 9, 2012 19:11
Show Gist options
  • Save maxrp/3860783 to your computer and use it in GitHub Desktop.
Save maxrp/3860783 to your computer and use it in GitHub Desktop.
The simplest possible way to determine the JVM architecture, AFAIK
class CheckArch {
public static void main(String[] args) {
String arch = System.getProperty("os.arch");
System.out.println("Architecture: " + arch);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment