0

I currently have an RCP Eclipse plug-in that goes into IBM Lotus Notes. I need to call the notes.exe binary with some arguments (kind of like from a .bat file), and I know how to do that when I know WHERE Notes is installed.

How do I find out where IBM Lotus Notes is installed, so I can know where to call the notes.exe from?

NOTE: Please don't suggest I look in the typical install folder, I'd like to be able to do it regardless of whether it's the typical default folder or not. Thanks

Vlad Ilie
  • 1,389
  • 1
  • 13
  • 37

2 Answers2

1

Look in the Windows registry under HKEY_CLASSES_ROOT\Notes\shell\open\Command

See answers to this old StackOverflow question for Java code that can read/write the registry.

Community
  • 1
  • 1
Richard Schwartz
  • 14,463
  • 2
  • 23
  • 41
  • I also found 'Platform.getInstallLocation()' which points to the framework/rcp/eclipse subfolder of the Notes install, and clear sailing from there on. Would there be any disadvantage in using this seemingly simpler solution? – Vlad Ilie Sep 21 '15 at 14:01
  • No disadvantage that I can think of. – Richard Schwartz Sep 21 '15 at 14:53
1

Platform.getInstallLocation() points to the [Notes_install]/framework/rcp/eclipse folder

Just remove the suffix and you have the Notes install

Vlad Ilie
  • 1,389
  • 1
  • 13
  • 37