0

When I try to export an Org mode document to OpenOffice Document format, I get the following error:

Screenshot 1

This answer suggested to use 7zip. So I

  1. installed 7zip,
  2. copied 7z.exe and renamed the copy to zip.exe, and
  3. added the path of 7zip (C:\Program Files\7-Zip) to exec-path (via M-x customize-variable RET exec-path RET).

But when I try to export my Org mode file to ODT with this setup, I get an error Incorrect command line, probably because 7zip uses different command line arguments than the zip program Org mode expects.

Screenshot 2

How can I fix this?

  • How about using zip instead of 7zip? Renaming a program from "orange" to "banana" does not make the program a "banana"; i.e., it is an "orange" disguised as a "banana" and your computer knows it and that is why it is saying "Error: Incorrect command line". – lawlist Nov 24 '19 at 17:17
  • 1
    Here is a link to a thread that seems applicable: lists.gnu.org/archive/html/emacs-orgmode/2013-04/msg00423.html – lawlist Nov 24 '19 at 17:22
  • @lawlist Where can I get that zip for Windows? Cygwin? – Mentiflectax Nov 25 '19 at 8:32
  • Have you already read through the linked thread and tried out the recommendations? There are five (5) posts including the initial question in that thread .... – lawlist Nov 25 '19 at 8:49
0

Here is a short tutorial for all who want to use ODT export under Windows.

I downloaded

  1. zip and
  2. unzip

and put them into folders C:\Program Files\zip300xn and C:\Program Files\unz600xn, respectively.

I set the exec-path variable as shown below using M-x customize-variable RET exec-path RET.

exec-path variable

When I try to export an Org Mode document to OpenOffice.org, I get the following error:

Error message

Then I changed the paths in exec-path to the following:

exec-path values 2

Translation from German:

Command C:\Program is either spelled wrongly or could not be found.

Then I moved zip300xn and unz600xn to C:/EmacsInfrastructure and set the exec-path variable accordingly.

Still no luck: unzip.exe could not be found in C:/EmacsInfrastructure/zip300xn.

Copied unzip.exe and unzip.txt from EmacsInfrastructure\unz600xn to C:/EmacsInfrastructure/zip300xn.

Then it worked.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.