12-06-2011 05:24 PM
String url = "http://www.mywebsite.com:8080/alfresco" + Utils.generateURL(FacesContext.getCurrentInstance(), new Node(fileInfo.getNodeRef()), URLMode.HTTP_DOWNLOAD);
then use class loader to load jar and create an instance of class:Class klass = Class.forName("my.package.MyClass", true, classLoader);
Object myObject = klass.newInstance();
However, I keep getting a ClassNotFoundException in java.security.AccessController.doPrivileged method.12-06-2011 09:05 PM
String url = "http://www.mywebsite.com:8080/alfresco" + Utils.generateURL(FacesContext.getCurrentInstance(), new Node(fileInfo.getNodeRef()), URLMode.HTTP_DOWNLOAD) + "?ticket=" + ticket;
and then it successfully loads JAR file.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.