Mercurial > octave-dspies
view build-aux/OctJavaQry.java @ 18959:4c45986a278e
dump_demos.m: Check if file exists before demo and add timing.
* dump_demos.m: Skip demo if output print file already exists. Add tic/toc timing
for demo (calculation + plotting) and printing. This allows benchmarks and
finding regressions which causes slow plotting or printing.
author | Andreas Weber <andy.weber.aw@gmail.com> |
---|---|
date | Sat, 26 Jul 2014 12:23:11 +0200 |
parents | fafd51a1b0f0 |
children |
line wrap: on
line source
// Code used by configure script to locate Java installation variables. // Only compiled code, OctJavaQry.class, is distributed. public class OctJavaQry { public static void main (String[] args) { if (args.length > 0) { if (args[0].equals ("JAVA_HOME")) { System.out.println (System.getProperty ("java.home")); } else if (args[0].equals ("JAVA_LDPATH")) { System.out.println (System.getProperty ("java.library.path")); } else if (args[0].equals ("JAVA_BOOTPATH")) { System.out.println (System.getProperty ("sun.boot.library.path")); } } } }