Hi, I am having some trouble setting the classpath for the hosted JVM.
I understand there are two options here: via Classpath or by doing it explicitly via a manual java_jvm_attach(). The latter does not seem to be available as, even right after starting the server, the JVM appears as already created. So I need to set the classpath env variable. I assume this only needs to be set in the terminal session used to launch the virtuoso process, so I tried the following: set CLASSPATH=/vdb/virt-jvm-py-6.1.2/java/virt-java-tests.jar;%CLASSPATH% virtuoso-javavm-t -f No luck. The classes in the virt-java-tests.jar are not available ( NoClassDefFoundError ), but JRE/JDK classes are, and work fine. So, for example, I can do this: import_jar (null, vector ('java.lang.System')); select java_lang_System::getProperty('java.vm.name'); -- works OK select java_lang_System::getProperty('java.class.path'); -- shows me that only '.' is in the classpath * Do I have to export the env variable to the system? * Once I get past that issue, I will need to pass some parameters to the JVM. I understand java_jvm_attach() allows for this. But can I do it via env vars or ini, for example? * A bit off topic... what is the recommended way to setup the jdbc connection from a hosted JVM? Is there a "tighter" route ( a la PHP hosting ). This is really really cool btw! --------- Virtuoso Open Source Edition (multi threaded) Version 6.1.2.3127-pthreads as of Aug 29 2010 Compiled for Darwin (i386-apple-darwin9.8.0) Hosted Runtime Environments: Java VM 1.4 --------- Regards, A -- Aldo Bucchi @aldonline skype:aldo.bucchi http://aldobucchi.com/