view build-aux/OctJavaQry.java @ 16828:ddac88d32d6a

Make demos in plot m-files compatible with Matlab for running comparison script. * scripts/plot/isosurface.m, scripts/plot/line.m, scripts/plot/mesh.m, scripts/plot/plotyy.m, scripts/plot/printd.m, scripts/plot/semilogy.m, scripts/plot/shrinkfaces.m, scripts/plot/stairs.m, scripts/plot/stem.m, scripts/plot/stemleaf.m, scripts/plot/tetramesh.m: Replace double quote (") with single quote ('). Use '%' for comment character. Use '...' for line continuation.
author Rik <rik@octave.org>
date Sun, 23 Jun 2013 14:47:05 -0700
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"));
      }
    }
  }
}