On 12/6/06, Adam Lally <[EMAIL PROTECTED]> wrote:
On 12/6/06, Lev Kozakov <[EMAIL PROTECTED]> wrote: > We just need to modify the InstallPear class main() method code to check if > the CVD class, specified in the gladis.properties file, is on the > classpath. We also may need to clean-up the pi.properties file. > OK, I'll leave this for you to submit a patch, if you know what needs to be done.
Unfortunately, the problem is more complicated that I thought at the beginning. The InstallPear application does not load the CVD main class in its own JVM. The CVD application is loaded in the child JVM process, and the classpath for this process is created from the env.CLASSPATH property in the gladis.properties file (it contains some UIMA folders and libs, including uima_tools.jar). So, even if we can find the CVS main class in the main JVM classpath, it does not help in running CVD application in a child JVM. It looks like more changes needed in the InstallPear code to make sure it runs outside of installed UIMA framework (with all the libs and folders in place).
Another problem is that InstallPear code requires uima.home JVM system > property. I'm not sure what can we do in the case when this property is not > set. > Is uima.home only used for launching CVD and finding the help file, or are the other uses? It shouldn't be needed for launching CVD if we apply the idea of using the java.class.path property. Maybe there is a better approach to the help file? For example using a Swing widget for viewing the HTML instead of launching a browser? Then the html file could be included in the jar file. -Adam
Actually, uima.home JVM option is heavily used in the InstallPear code for configuring and running CVD, as well as getting help file URL. For CVD it needs more than just CLASSPATH (e.g. configuring uima.home and uima.datapathchild JVM options), so removing the InstallPear code dependency on uima.home will not be easy. Actually, there is a plan to sunset the InstallPear and replace it with a new plugin-based solution, but this will not happen in the nearest future.
