java_load_class
Declares a Java class to a Java VM
java_load_class
(in java_class_name varchar,
in java_class_bytecode varchar);
Description
Defines a java class into the running Java VM. This is useful for
loading .class/.jar/.zip files from a BLOB column or from the Virtuoso
WebDAV repository.
Parameters
java_class_name –
the name under which the class is to be defined
java_class_bytecode –
the contents of the .class file.
Examples
Loading a Java Class
Some sample Java code:
java_server.java:
public class java_server {
public static int property;
}
Compiling it makes a java_server.class. Loading it in Virtuoso
is as follows:
java_load_class ('java_server', file_to_string ('java_server.class'));