Mercurial > octave-nkf
view build-aux/OctJavaQry.java @ 15824:abc9e5f3c661
Return correct value for ischar() predicate test on octave_java objects.
* libinterp/octave-value/ov-java.h(is_string):
Rename is_string() to is_java_string. Leave only prototype in .h file.
* libinterp/octave-value/ov-java.cc(is_java_string):
Move code for is_string from ov-java.h to is_java_string in ov-java.cc.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 21 Dec 2012 10:18:38 -0800 |
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")); } } } }