Hi All
Is there a possibility to read the java library path within Servoy, i. e. in a Servoy module? Something like the eqivalent of System.getProperty("java.library.path") in Java?
application.output(java.lang.System.getProperty("java.library.path"))
function getSystemProperties() {
/** @type {java.util.Properties} */
var props = java.lang.System.getProperties();//Properties object returned
/** @type {java.util.Enumeration} */
var enumeration = props.propertyNames();
while (enumeration.hasMoreElements()){
/** @type {String} */
var prop = enumeration.nextElement();
application.output('property: ' + prop);
}
/** @type {String} */
var libPath = java.lang.System.getProperty('java.library.path');
var array_libPath = libPath.split(';');
for (path in array_libPath){
application.output('library path[' + path + '] = ' + array_libPath[path]);
}
return;
}
application.output('property: ' + prop);
application.output('property: ' + prop + ' = ' + java.lang.System.getProperty(prop));
Users browsing this forum: No registered users and 3 guests