https://bugs.documentfoundation.org/show_bug.cgi?id=162429

--- Comment #2 from Corneloup <[email protected]> ---
(In reply to Albrecht Müller from comment #1)
Hi Albrecht,
Sorry, I didn't noticed your answer before (I may have missed a warning mail)

I have written a Java script because I needed a Base64 converter in a Calc
Basic application. As it was to be used by persons unconfident to install
anything on their computers, it was not possible to let it in the standard
directory “share\Scripts\java”.

So I have embedded the script directly in the Calc file.
That means uncompressing the ODS file, adding a directory "Script/java/.." in
it with a parcel-descriptor.xml file indicating a classpath limited to only one
JAR file, and rezipping the result.
It works perfectly, except that a recent version of Java was needed. So the
persons finally have had to install something :-))

But this has permitted to notice that when they didn't have a proper Java
version, everything was OK, until when they wanted to execute an operation
needing the Java script, which launched an error indicating the script was
missing.

This makes me think that LibreOffice starts a JVM when needed, adding my JAR
file to the classpath. Starting a JVM when starting LibreOffice would forbid
the start if there is no JVM installed. This does not prevent LibreOffice to
have a classloader able to add JAR files on the fly.

In any case, my problem is that in the parcel-descriptor.xml, I am constrained
to only one JAR file, which is a problem if the script needs to use several
libraries. And as LibreOffice is able to load my JAR file, I don't see any
impossibility to load more.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to