Forum moved here!

Home / Sumatra Texlipse Eclipse Forward and Inverse Search Problem


I’m trying to use Sumatra as an external viewer for the Texlipse (latex) environment on Eclipse.
The setup given by jörg on works for the inverse search (Eclipse Oxygen.1a Release (4.7.1a) 32bit // sumatra 4.7.1a 64bit portable on Win7 64bit with Java 32bit) but the Forward search can’t find anything. (I tried with minimal document, because i was not sure whether my rather esoteric document was to blame, but no joy). Sumatra 3.1.1 32 bit portable performed exactly the same.
Could anyone advise on how to proceed?


Latest stable version is 3.1.2, so no idea where you got 4.7.1a from or why you’re using 3.1.1. If 3.1.2 doesn’t work fine (assuming you configured it for search properly), try the latest pre-release version and see.


Thanks SumatraPeter, typo there. 4.7.1a was version of Eclipse, 64bit Version of Sumatra was 3.1.1.
Now tried with 3.1.2 32bit version of Sumatra, [EDIT: and both the 32 bit and 64bit prerelease] still just inverse search.
PdfLatex is called with:

-interaction=nonstopmode --src-specials %input -synctex=-1 %input

Sumatra is called with:

-reuse-instance %fullfile

…and gets this DDE command:

[ForwardSearch("%fullfile","%texfile",%line, 0,0,1)]

(with “Server” set to SUMATRA, and “Topic” to control)
“Viewer supports forward search” is checked


long time since tried DDE but calls can be pedantic about syntax

check your DDE calls work standalone as expected

under standard SumatraPDF options have you set the correct syntax for your editor (each one can be different) it should look something like

javaw -classpath “C:\Users\joerg\Desktop\eclipse-3.7.1\eclipse\plugins\net.sourceforge.texlipse_1.5.0\texlipse.jar” net.sourceforge.texlipse.viewer.util.FileLocationClient -p 55000 -f “%f” -l %l

NOTE the normal (double) quote marks around %f

for call back, treble check the documentation as you may need to verify the path as part of the parameters
"path to the PDF document" (if this path is omitted and the document isn’t already open, SumatraPDF won’t open it for you)

try to debug each way exactly what syntax is sent and received


Hi GitHubRulesOK,

thank you for your answer. I treble-checked the sumatra-settings (though they profess to only be interesting for Inverse, which works anyway) - and they are in order (i did not have the quotes around %f, but that seems to inly matter if there are whitespaces in the path.

I have no idea how to

check your DDE calls work standalone as expected

Can you advise?



In the past I have used tools such as CMCDDE by Commence Corp to test if the DDE calls work from the command line
parsing your [ForwardSearch("%fullfile","%texfile",%line, 0,0,1)]
I note you have a space which may be causing a problem (i.e try with %line,0,0 etc)

also can you test your calling line
-reuse-instance %fullfile by replacing with
Viewer arguments:
-reuse-instance “%fullfile” -forward-search “%texfile” %line


I now use your extended Viewer arguments, and removed the space in the DDE-command, The reply to a Forward search is still “Forward search failed”-“The position could not be found in any currently open pdf files”, inverse search still works, though.

EDIT - I tried CMCDDE, but the lack of documentation is disturbing :slight_smile:
I tried this with sumatra already running:

cmcdde SUMATRA control [ForwardSearch(“d:\Switch.pdf”,“d:\Switch.synctex”,10,0,0,1)]
Error: Could not send DDE command.

and this with sumatra not running:

cmcdde SUMATRA control "[ForwardSearch(“d:\Switch.pdf”,“d:\Switch.synctex”,10,0,0,1)]"
Error: Could not initiate a DDE conversation.
App name: SUMATRA
Topic name: control

…so i’m not sure what the problem is with the command, or my way of giving it (note that i tried quotes around the command and not, in both scenarios, no change in behaviour.

Thanks for sticking with this!



I have not forgotten you
I revisited my old DDE notes and realised they needed a brush up so last few weeks have been testing MiKTeX in various ways starting from CLI onwards, you may find some tips in [How-To] Part1 - Using CLI & DDE with SumatraPDF


I am facing a similar problem. Reverse search works, forward search from eclipse is not working.

Win 10, firewall disabled
Eclipse IDE for Rust Developers, Version: Photon Release (4.8.0)
TeXlipse 2.0.2
SumatraPDF v3.1.2 64-bit

Forward search with former version (1.4?) of TeXlipse and older version of eclipse worked.
How to address the problem?


as you may or not be aware Windows 10 is heavily interfering with installation or running of “non” Windows Apps !
You had a working install with 1.4 was that in Win10 ?
SumatraPDF should itself behave no differently but User Rights control may be blocking DDE as MS want to effectively do away with it’s exploits (except for their own uses :slight_smile: )
bitness can have a bearing since MS don’t like 32 user talking to 64 level or vice versa
If you read my notes you should see there are ways to re-write the command line to replicate the DDE calls but I currently don’t have time to check your usage

Have others at Texlipse forum had issues with new version 2.0.2 and DDE calls
or recent experience of setting up with SumatraPDF on Win10

When you find a solution PLEASE reply here to help yourself or others know your findings


Indeed, forward search worked in win10, same sumatra version.

Previous working version of eclipse and TeXlipse:
Eclipse Version: Neon.3 Release (4.6.3)
Build id: 20170314-1500
and TeXlipse 1.5.0

I will let you know if I get to the bottom of this. In the meanwhile I hope someone has
a running version or same problems.


Problem solved:

-Removed all version of eclipse
-Installed last version JVM 64bit
-Installed Photon Release (4.8.0)
-Installed TeXlipse 2.0.2
However, these steps didn’t solve my issue.

Problem arises from path variable „%texfile”.
If project was created with folder for tex-files like shown below

than „%texfile” does’t point to document.tex any more.

Temporary solution: work with absolute path names for „%texfile”


Thanks for the feedback, I am confused by your naming since dde and sumatraPDF expect
"%texfile" i.e both MUST be conventional “double quotes” i.e shifted 2 on most UK keyboards though different placement on American keyboards (usually swapped places with @) for image see


Double quotes were part of the problem. Probably, I mixed up German and English character set. The following setting is working like a charm:

Arguments PDFLatex program:

-synctex=-1 -interaction=nonstopmode --src-specials %input

Viewer arguments:

-reuse-instance %file -forward-search %texfile %line

DDE message to send on view:

Command: [ForwardSearch(“%fullfile”,”%texfile”,%line, 0,0,1)]


Topic: control

Force Ecplipse to get focus on inverse search unchecked.