To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=50509





------- Additional comments from [EMAIL PROTECTED] Wed Jun 15 12:04:59 -0700 
2005 -------
I've solved this issue.

First, I manually created the single jar file 'ooFull.jar' by exploding all 
the jars in the 'classes' directory, and re-jaring them into a single jar 
file, which gets placed in the <installdir>/program/classes directory.

Then, I had to create a shell application, launched via jnlp. The shell app 
grabs the webstart cached jar files, builds a classpath string with all these 
jars and the client-side OpenOffice installation location, and launches the 
real application, i.e.


public static void main(String[] args)
{
    File tmpdir = new File(System.getProperty("java.io.tmpdir"));
 
    // build the constructedClasspathString, based on this class (see thread 
referenced below)
    // append the local installation location of OpenOffice, such as
    //    "C:/Program Files/OpenOffice.org1.1.4/program/classes/ooFull.jar"
    // (I actually pass this as an argument, based on the type of system I 
install onto)

    String[] launchArgs = new String[4];  // or more if you want to copy in 
other arguments
    launchArg[0] = "java";
    launchArg[1] = "-cp";
    launchArg[2] = constructedClasspathString;
    launchArg[3] = targetClassNameString;
    // copy in other arguments as desired...
 
    Process p = Runtime.getRuntime().exec(launchArg, null, tmpdir);
    StreamGobbler out = new StreamGobbler(p.getInputStream(), "OUT");
    out.start();
    StreamGobbler err = new StreamGobbler(p.getErrorStream(), "ERR");
    err.start;
 
    int result = p.waitFor();
}


You definitely want to inherit this instance's environment, so don't override 
the 2nd argument to exec().

The StreamGobbler stuff can be found here:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

The 'grabbing the webstart cached jar files' stuff can be found here (you'll 
want to modify it a little ...)
http://forum.java.sun.com/thread.jspa?forumID=38&threadID=71208


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to