OpenOffice Portable and extensions
It appears that Python has been removed from OpenOffice Portable (portableapps.com) so that the OpenOffice extension can not be installed. Any plans to accommodate OpenOffice Portable?
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
I think it's more that the Portable version of OOo would need to change in order to accommodate Zotero and other extensions.
In order to reduce the size of OOo so that it can better fit on a USB drive, certain aspects of its functionality have been removed in the Portable Apps version. I believe that, in particular, the removal of the "UNO-Python bridge" is the problem for Zotero users. Without that component, I believe it is impossible for Zotero to communicate with OOo.
Maybe the developers of OOo Portable will add the missing components back to their build if Zotero users ask them nicely. :) It's quite possible that there hasn't been a strong demand or any other reason to include the needed components in the Portable build before now.
Apparently, there is a German version of OOo that includes Python (and the UNO-Python bridge, I suppose, I don't know). See:
http://portableapps.com/node/8736
Maybe as a workaround you could try installing that and then changing the interface language to English or whatever other language you prefer? There are instructions for how to add an interface language to an existing installation of OOo here:
http://www.oooforum.org/forum/viewtopic.phtml?t=33125
http://www.8daysaweek.co.uk/forums/viewtopic.php?t=760
I haven't tried this myself.
1) Download the full version of OpenOffice (or any version that includes Python)
2) Extract to a temporary location
3) Copy the folder called "python-core-2.3.4" (or similar, found in [temporarylocation]\openoffice\program) to [YourOpenOfficePortable Directory]\App\openoffice\program
4) In the same folder you found "python-core-2.3.4" also copy the following files to [YourOpenOfficePortable Directory]\App\openoffice\program
mailmerge.py
officehelper.py
python23.dll
python.bat
pythonloader.py
pythonloader.uno.dll
pythonloader.uno.ini
pythonscript.py
pyuno.dll
uno.py
unohelper.py
python.exe
5) In OpenOffice Portable, install/enable the zotero.oxt extension through Tools|Extension Manager
Note:
The list of file is from memory, in fact what I did was to search for any files called *.py, *.pyc, or py*.* in the [temporarylocation]\openoffice\program folder (exclude anything found in subfolders)
Also some of the files may not be strictly necessary, but I don't have the time to fully test this
Hope this helps.
Open OpenOffice, add the Zotero extension, restart OpenOffice and your Zotero toolbar should be there.
The thing is, if you use the cruzer icon to run programs OpenOffice won't show up there because you install it outside the cruzer app.
You can easily solve this by creating a short-cut in the LaunchPad with ShortCut Creator.
http://usb.smithtech.us/projects/index.php
Worked like charm for me.
Any help like a step by step procedure?
I checked the path and they are both like this even after the auto detection script:
file:///C:/OpenOfficePortable/
Also I checked into openoffice java directory C:\OpenOfficePortable\App\Java and there is a readme.txt file in there with the following content.
------------------------------
Java binaries go here or in X:\PortableApps\CommonFiles\Java for shared use.
To enable Java, copy the Java files from a local install, usually C:\Program Files\Java\jre1.5.0_11,
to this directory. Copy the whole structure intact (so you'd have a lib and a bin directory in this
Java directory when complete.
Then, create a text file called javaportable.ini in the same directory as this readme.txt with the
following in it (altering for Java version):
[JavaPortable]
Vendor=Sun Microsystems Inc.
Version=1.5.0_11
URL=http://java.sun.com/
----------------------------------
I looked around and found a jre1.6.0_07 directory, but it seems to me that it is a browser plugin for JAVA and not java virtual machine itself. Thus, so far, my guess is that my problem is the absence of java virtual machine. I asked IT to come at my workstation and check this for me.
I will send more feedback as soon as possible.
After adding the file javaportable.ini as described above and changing the soffice path to
file:///P:/OpenOfficePortable/App/openoffice/program/ I got the following message:
Adding Zotero OpenOffice.org Extension, and now it seems to work.
for soffice: file:///E:/OpenOfficePortable/App/openoffice/program/
for JAVA: file:///E:/OpenOfficePortable/App/openoffice/URE/java/
and it worked.