| View previous topic :: View next topic |
| Author |
Message |
seddonym General User

Joined: 18 Oct 2008 Posts: 11
|
Posted: Fri Oct 31, 2008 3:30 am Post subject: Java Macros Disappear on Save |
|
|
I think I posted this issue in the wrong topic:
| Quote: | I've just come across a strange issue with all java macros on OpenOffice 2.4.0.
Following the instructions here I have unzipped ods or odt files, and placed macros under the Scripts/java/[ClassName]/ directory. I include a jar file and an appropriate parcel-descriptor.xml file.
When I rezip the file and open it, everything works fine. The macros can be run. However, if I save it and then reopen it then the macros are no longer there. I have tried this for a variety of macros in Writer and Calc.
Has anyone else experienced this problem? Any ideas of how to sort it out?
Thanks |
Grateful for any thoughts. |
|
| Back to top |
|
 |
hanya Super User

Joined: 04 May 2005 Posts: 543 Location: Japan
|
Posted: Fri Nov 14, 2008 6:03 pm Post subject: |
|
|
I added these lines into manifest.xml file for HelloWorld that is thaken from shared scripts. And java macro remains after the overwritting the file on OOo 2.4.1.
| Code: | <manifest:file-entry manifest:media-type="" manifest:full-path="Scripts/java/HelloWorld/parcel-descriptor.xml"/>
<manifest:file-entry manifest:media-type="" manifest:full-path="Scripts/java/HelloWorld/HelloWorld.jar"/>
<manifest:file-entry manifest:media-type="application/binary" manifest:full-path="Scripts/java/HelloWorld/"/>
<manifest:file-entry manifest:media-type="application/binary" manifest:full-path="Scripts/java/"/>
<manifest:file-entry manifest:media-type="application/binary" manifest:full-path="Scripts/"/> |
|
|
| Back to top |
|
 |
|