--
You received this message because you are subscribed to the Google Groups "ComfyJ Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to comfyj-forum...@teamdev.com.
To view this discussion on the web visit https://groups.google.com/a/teamdev.com/d/msgid/comfyj-forum/83f1b4c6-924a-4f3f-9393-daaa5b115d2a%40teamdev.com.
URLClassLoader
classLoader = (URLClassLoader) ClassLoader.getSystemClassLoader();Class
clazz= URLClassLoader.class; // Use reflectionMethod
method= clazz.getDeclaredMethod("addURL", new Class[] { URL.class });method.setAccessible(true);
String instPath = WinRegistry.readString (
WinRegistry.HKEY_LOCAL_MACHINE, //HKEY
"SOFTWARE\\Reconice\\Rvrc", //Key "InstPath"); //ValueNameSystem.
out.println("Recomed Inst Path [" + instPath + "]");String
jarPath = instPath+File.separator+"java"+File.separator+"jar"+File.separator;ArrayList<String>
jarFileList = new ArrayList<String>(); jarFileList.add(jarPath+"comfyj-2.11.jar"); jarFileList.add(jarPath+"jniwrap-3.9.jar"); jarFileList.add(jarPath+"license.jar"); jarFileList.add(jarPath+"log4j-api-2.1.jar"); jarFileList.add(jarPath+"log4j-core-2.1.jar"); jarFileList.add(jarPath+"winpack-3.9.jar"); jarFileList.add(jarPath+"slf4j-api-1.5.8.jar"); jarFileList.add(jarPath+"slf4j-simple-1.5.8.jar"); for(String jar : jarFileList){File
f = new File(jar); if(f.exists() == false){ throw new Exception("File [" + jar + "] doesn't exist!");}
System.
out.println("Adding jar [" + jar + "]"); method.invoke(classLoader, new Object[] { f.}
Hi Paolo,
Regards,
Sergei
To view this discussion on the web visit https://groups.google.com/a/teamdev.com/d/msgid/comfyj-forum/83f1b4c6-924a-4f3f-9393-daaa5b115d2a%40teamdev.com?utm_medium=email&utm_source=footer.