OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Java Macros Disappear on Save

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
seddonym
General User
General User


Joined: 18 Oct 2008
Posts: 11

PostPosted: Fri Oct 31, 2008 3:30 am    Post subject: Java Macros Disappear on Save Reply with quote

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
View user's profile Send private message
hanya
Super User
Super User


Joined: 04 May 2005
Posts: 543
Location: Japan

PostPosted: Fri Nov 14, 2008 6:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group