Skip to main content
deleted 1373 characters in body; edited title
Source Link
Szabolcs
  • 236.5k
  • 31
  • 641
  • 1.3k

Installing How to set up LinkSnooper on Windowsfor monitoring FrontEnd--Kernel communication?

I triedWhat is the simplest way to installset up LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string inmonitor the field MLOpen:

"-LinkMode Launch -LinkName '\""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles", "Java", "Windows-x86-64", "bin", "javaw.exe"}]<>
"\" -classpath \""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles","Links","JLink","JLink.jar"}]<>
"\" com.wolfram.jlink.util.LinkSnooper -kernelname \""<>
FileNameJoin[{$InstallationDirectory,"mathkernel.exe"}]<>
"\"'"

(* -LinkMode Launch -LinkName '"C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Java\Windows-x86-64\bin\javaw.exe" -classpath "C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Links\JLink\JLink.jar" com.wolfram.jlink.util.LinkSnooper -kernelname "C:\Program Files\Wolfram Research\Mathematica\10.0\mathkernel.exe"' *)

When I startcommunication between the kernel, just as inKernel and the question, a file system browser asks me for a MathLink program. The same happens when I replace -classpath with -cp.Front End?

I also read the solution of @halirutan given heream looking for a related problem, but I could not find a variant ofan answer that method for only starting up LinkSnooper.

I would highly appreciate if someone could point me to what I did wrongworks on all platforms, including 32-bit Windows.

Installing LinkSnooper on Windows

I tried to install LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string in the field MLOpen:

"-LinkMode Launch -LinkName '\""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles", "Java", "Windows-x86-64", "bin", "javaw.exe"}]<>
"\" -classpath \""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles","Links","JLink","JLink.jar"}]<>
"\" com.wolfram.jlink.util.LinkSnooper -kernelname \""<>
FileNameJoin[{$InstallationDirectory,"mathkernel.exe"}]<>
"\"'"

(* -LinkMode Launch -LinkName '"C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Java\Windows-x86-64\bin\javaw.exe" -classpath "C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Links\JLink\JLink.jar" com.wolfram.jlink.util.LinkSnooper -kernelname "C:\Program Files\Wolfram Research\Mathematica\10.0\mathkernel.exe"' *)

When I start the kernel, just as in the question, a file system browser asks me for a MathLink program. The same happens when I replace -classpath with -cp.

I also read the solution of @halirutan given here for a related problem, but I could not find a variant of that method for only starting up LinkSnooper.

I would highly appreciate if someone could point me to what I did wrong.

How to set up LinkSnooper for monitoring FrontEnd--Kernel communication?

What is the simplest way to set up LinkSnooper to monitor the communication between the Kernel and the Front End?

I am looking for an answer that works on all platforms, including 32-bit Windows.

Tweeted twitter.com/#!/StackMma/status/535229357451902977
deleted 2 characters in body
Source Link
Fred Simons
  • 10.2k
  • 19
  • 50

I tried to install LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string in the field MLOpen:

"-LinkMode Launch -LinkName '\""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles", "Java", "Windows-x86-64", "bin", "javaw.exe"}]<>
"\" -classpath \""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles","Links","JLink","JLink.jar"}]<>
"\" com.wolfram.jlink.util.LinkSnooper -kernelname \""<>
FileNameJoin[{$InstallationDirectory,"mathkernel.exe"}]<>
"\"'"

(* -LinkMode Launch -LinkName '"C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Java\Windows-x86-64\bin\javaw.exe" -classpath "C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Links\JLink\JLink.jar" com.wolfram.jlink.util.LinkSnooper -kernelname "C:\Program Files\Wolfram Research\Mathematica\10.0\mathkernel.exe"' *)

When I start the kernel, just as in the question, a file system browser asks me for a MathLink program. The same happens when I replace -classpath with -cp.

I also read the solution of @halirutan given (here) for a related problem, but I could not find a variant of that method for only starting up LinkSnooper.

I would highly appreciate if someone could point me to what I did wrong.

I tried to install LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string in the field MLOpen:

"-LinkMode Launch -LinkName '\""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles", "Java", "Windows-x86-64", "bin", "javaw.exe"}]<>
"\" -classpath \""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles","Links","JLink","JLink.jar"}]<>
"\" com.wolfram.jlink.util.LinkSnooper -kernelname \""<>
FileNameJoin[{$InstallationDirectory,"mathkernel.exe"}]<>
"\"'"

(* -LinkMode Launch -LinkName '"C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Java\Windows-x86-64\bin\javaw.exe" -classpath "C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Links\JLink\JLink.jar" com.wolfram.jlink.util.LinkSnooper -kernelname "C:\Program Files\Wolfram Research\Mathematica\10.0\mathkernel.exe"' *)

When I start the kernel, just as in the question, a file system browser asks me for a MathLink program. The same happens when I replace -classpath with -cp.

I also read the solution of @halirutan given (here) for a related problem, but I could not find a variant of that method for only starting up LinkSnooper.

I would highly appreciate if someone could point me to what I did wrong.

I tried to install LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string in the field MLOpen:

"-LinkMode Launch -LinkName '\""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles", "Java", "Windows-x86-64", "bin", "javaw.exe"}]<>
"\" -classpath \""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles","Links","JLink","JLink.jar"}]<>
"\" com.wolfram.jlink.util.LinkSnooper -kernelname \""<>
FileNameJoin[{$InstallationDirectory,"mathkernel.exe"}]<>
"\"'"

(* -LinkMode Launch -LinkName '"C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Java\Windows-x86-64\bin\javaw.exe" -classpath "C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Links\JLink\JLink.jar" com.wolfram.jlink.util.LinkSnooper -kernelname "C:\Program Files\Wolfram Research\Mathematica\10.0\mathkernel.exe"' *)

When I start the kernel, just as in the question, a file system browser asks me for a MathLink program. The same happens when I replace -classpath with -cp.

I also read the solution of @halirutan given here for a related problem, but I could not find a variant of that method for only starting up LinkSnooper.

I would highly appreciate if someone could point me to what I did wrong.

edited tags
Source Link
Szabolcs
  • 236.5k
  • 31
  • 641
  • 1.3k

I tried to install LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string in the field MLOpen:

"-LinkMode Launch -LinkName '\""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles", "Java", "Windows-x86-64", "bin", "javaw.exe"}]<>
"\" -classpath \""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles","Links","JLink","JLink.jar"}]<>
"\" com.wolfram.jlink.util.LinkSnooper -kernelname \""<>
FileNameJoin[{$InstallationDirectory,"mathkernel.exe"}]<>
"\"'"

(* -LinkMode Launch -LinkName '"C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Java\Windows-x86-64\bin\javaw.exe" -classpath "C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Links\JLink\JLink.jar" com.wolfram.jlink.util.LinkSnooper -kernelname "C:\Program Files\Wolfram Research\Mathematica\10.0\mathkernel.exe"' *)

When I start the kernel, just as in the question, a file system browser asks me for a MathLink program. The same happens when I replace -classpath with -cp.

I also read the solution of @halirutan given ((here)(Using LinkSnooper for monitoring the communication with an installable MathLink programhere)) for a related problem, but I could not find a variant of that method for only starting up LinkSnooper.

I would highly appreciate if someone could point me to what I did wrong.

I tried to install LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string in the field MLOpen:

"-LinkMode Launch -LinkName '\""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles", "Java", "Windows-x86-64", "bin", "javaw.exe"}]<>
"\" -classpath \""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles","Links","JLink","JLink.jar"}]<>
"\" com.wolfram.jlink.util.LinkSnooper -kernelname \""<>
FileNameJoin[{$InstallationDirectory,"mathkernel.exe"}]<>
"\"'"

(* -LinkMode Launch -LinkName '"C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Java\Windows-x86-64\bin\javaw.exe" -classpath "C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Links\JLink\JLink.jar" com.wolfram.jlink.util.LinkSnooper -kernelname "C:\Program Files\Wolfram Research\Mathematica\10.0\mathkernel.exe"' *)

When I start the kernel, just as in the question, a file system browser asks me for a MathLink program. The same happens when I replace -classpath with -cp.

I also read the solution of @halirutan given ((here)(Using LinkSnooper for monitoring the communication with an installable MathLink program)) for a related problem, but I could not find a variant of that method for only starting up LinkSnooper.

I would highly appreciate if someone could point me to what I did wrong.

I tried to install LinkSnooper on my Windows 7 computer, as described in the documentation and here. According to the answer of @Todd Gayley, I entered the following string in the field MLOpen:

"-LinkMode Launch -LinkName '\""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles", "Java", "Windows-x86-64", "bin", "javaw.exe"}]<>
"\" -classpath \""<>
FileNameJoin[{$InstallationDirectory,"SystemFiles","Links","JLink","JLink.jar"}]<>
"\" com.wolfram.jlink.util.LinkSnooper -kernelname \""<>
FileNameJoin[{$InstallationDirectory,"mathkernel.exe"}]<>
"\"'"

(* -LinkMode Launch -LinkName '"C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Java\Windows-x86-64\bin\javaw.exe" -classpath "C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Links\JLink\JLink.jar" com.wolfram.jlink.util.LinkSnooper -kernelname "C:\Program Files\Wolfram Research\Mathematica\10.0\mathkernel.exe"' *)

When I start the kernel, just as in the question, a file system browser asks me for a MathLink program. The same happens when I replace -classpath with -cp.

I also read the solution of @halirutan given (here) for a related problem, but I could not find a variant of that method for only starting up LinkSnooper.

I would highly appreciate if someone could point me to what I did wrong.

Source Link
Fred Simons
  • 10.2k
  • 19
  • 50
Loading