libreoffice javascript missing?

Asked by adam jvok

Running LibreOffice on 11.10. Tools/macros/Organize Macros - Javascript option is missing.

I installed 'rhino', with no effect.

I seem to recall there once being a package called something like 'libreoffice-rhino' or 'libreoffice-script-provider-javascript' that provided the necessary files under /usr/lib/libreoffice/basis3.4/share/Scripts/javascript/ (similar to the fedora rpm mentioned at http://rpm.pbone.net/index.php3/stat/4/idpl/17078367/dir/fedora_1/com/libreoffice-rhino-3.4.3.2-11.fc16.i686.rpm.html). But I can not find anything like this in ubuntu 11.10.

Can anyone tell me how to enable Javascript in LibreOffice on 11.10?
Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu libreoffice Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
adam jvok (ajvok1) said :
#1

For javascript to work in LibreOffice it appears I need the file ScriptProviderForJavaScript.jar

Maverick had this file:

/usr/lib/openoffice/basis3.2/program/classes/ScriptProviderForJavaScript.jar

in openoffice.org-java-common (http://packages.ubuntu.com/maverick/all/openoffice.org-java-common/filelist)

But the file is missing from 11.10: http://packages.ubuntu.com/oneiric/all/openoffice.org-java-common/filelist

By taking the files found in Arch Linux:

http://www.archlinux.org/packages/extra/x86_64/libreoffice-extension-scripting-javascript/

and putting them under /usr/lib/libreoffice/share/extensions/script-provider-for-javascript on 11.10, I can solve the problem.

But clearly this should not be necessary. Where are the files in Ubuntu 11.10?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Try:

sudo add-apt-repository ppa:libreoffice/ppa; sudo apt-get update; sudo apt-get -y upgrade

Revision history for this message
adam jvok (ajvok1) said :
#3

Thanks for the suggestion.

Looking at the files in that ppa, the libreoffice-java-common does not appear to contain ScriptProviderForJavaScript.jar

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

I suggest you log a regression bug. You COULD download the deb, extract it and copy the file manually. may work

Can you help with this problem?

Provide an answer of your own, or ask adam jvok for more information if necessary.

To post a message you must log in.