How to launch an NSF from Eclipse Java

I was asked this question the other day from a business partner and thought there are a couple of ways to skin this cat.  You can launch a program from pure Java using the Runtime class.  On windows (which meand this is really a poor solution) the command would look something like this:

Runtime.getRuntime().exec( “rundll32 url.dll,FileProtocolHandler ” + notesURL );

Where notesURL would be something that looks like this:  “Notes:///852568BD0051EF1E/6AE46DA7E9B0F3C185257297005D6B2D/B43A4DC7CB1E82AF852575C300626805”

If you want to use a more basic approach, Eclipse has the Program class that allows you to launch an application.  By simply passing in the URL as the program the operating system will pass it on to the correct handler (much easier and cross platform aware).

import org.eclipse.swt.program.Program;


Lastly, in Notes 8.5.1 there will be a new Java UI API (but don’t hold my word to this) to launch databases and views with a single call.  It is similar to the LotusScript package.  This is available to business partners and anyone who has access to the Notes 8.5.1 code.  So if you have a direct need to use Notes API’s then this will work, otherwise I recommend using the SWT Program class.

NotesUIWorkspace ws = new NotesUIWorkspace();
ws.openDatabase( );


New article: Creating an IBM Lotus Notes 8.0 and later plug-in for IBM Multimedia Library

A buddy in IBM Software Services for Lotus – Germany, Robert Schneider, wrote  a nice article about plug-in development and using the IBM Multimedia library.  This uses a Features and Plug-in widget to assist in the deployment of the newly created Eclipse artifact.  It is a great tutorial for how these things are connected and then deployed.

This article explains how to create an extension for IBM® Lotus Notes® 8.0 and later that allows you to open a preconfigured URL (for example, Lotus Notes Multimedia Library) in a newly opened browser window by selecting a menu entry in the Help menu.

Improve Productivity and Save Costs with IBM Lotus Expeditor Webinar

Another webinar for Lotus Expeditor, sign up and learn about the platform under Lotus Notes 8.

Dear Valued IBM Customer,

Please accept my personal invitation to the ‘Improve Productivity and Save Costs with IBM Lotus Expeditor’ Webcast on Wednesday, May 27, 2009.

In today’s challenging economic environment, it is more important than ever that your technology works for you. IBM Lotus Expeditor software, IBM’s Universal Managed Client for Services Oriented Architecture (SOA), enables your enterprise to maximize resources while minimizing costs by allowing you to re-use code across various Line of Business (LOB) applications.

Come hear first hand from Taco Bell CIO, Charles Lee, on why his business chose Lotus Expeditor to modernize their infrastructure of over 5,400 U.S. restaurants and how they are benefiting from their decision. We’ll also share additional customer ROI examples as well as our future product roadmap, straight from the Development Team. And, be sure to bring your questions for live Q&A with our distinguished panel of guests:

– Charles Lee, CIO, Taco Bell Restaurants
– David Wine, Director IT, Taco Bell Restaurants
– Tom Wroblewski, VP, Lotus Sales, IBM Americas
– Rich Meadows, Sales Leader, IBM Client Services SW
– Angus McIntyre, Product Mgr, IBM Lotus Expeditor
– Steven King, Sr Prgrm Mgr, IBM Client Platforms & Tech
– Jim Robbins, Sr Tech Staff, IBM Client Platforms & Tech

Register Today:

– Webcast: Improve Productivity and Save Costs with IBM Lotus Expeditor
– Date & Time: May 27, 2009; 12:00 – 1:00pm EST
– Registration Page:

You won’t want to miss it!

IBM Lotus Protector Webinar

Passing this on from Lotus Sales, you can register for this webinar about IBM Lotus Protector.

Dear Valued IBM Customer,

Please accept my personal invitation to the ‘IBM Lotus Protector Delivers Mail Security to Your Business!’ Webcast on Wednesday, May 21, 2009.

Every business needs the capability to block spam from entering their enterprise and potentially interrupting employee productivity. IBM Lotus Protector software provides superior protection against internet e-mail spam and viruses, as well as, data loss prevention capabilities.

Attend this webinar to hear first hand how other organizations have implemented Lotus Protector and realized immediate improvements in protecting their enterprise. We will also be joined by members of the Lotus Protector development team who will share the roadmap and strategy for this exciting product. Be sure to bring your questions for live Q&A with our distinguished panel of guests:

– Rich Meadows, Business Unit Executive, Lotus Protector Americas
– Randolph Moorer, Sales Leader, Lotus US IMT
– Art Fontaine, Worldwide Product Manager, Lotus Protector
– Gary Kearney, Worldwide Sales Leader, Lotus Protector
– Vernon Mayfield, Offerings Release Manager, Lotus Protector
– Sean Brown, Technical Product Manager, Lotus Protector

Register Today:

– Webcast: IBM Lotus Protector Delivers Mail Security to Your Business!
– Date & Time: May 21, 2009; 11:00am – 12:00pm EST
– Registration Page:

You won’t want to miss it!

Composite Application Wiki is a composite application

The composite application wiki is a Notes database that uses the Java view renderings so the application (to me as an author) looks like a Notes 8 application.  As I referenced a developerworks article in my last post you can have your Notes applications have a similar look and feel.  These means the themes in the Notes will impact your applications in a good way – your applications will always look like they “fit” in the client.


Want your Notes databases to have the look and feel of Mail in Notes 8?

You should check out the article Mark Margo and Steve put together.  They show how you can use the composite application editor and the PIM Mail view to have your outlines and views use the Java rendering of your databases.  This will give your databases that Notes 8 look and feel.  The article walks you through making the basic discussion database a full blown composite application using the Java views.  You can pretty much take this same approach with any database and because it is a composite you can add any other kind of Java view to the layout of your application.

Great tools for an Eclipse runtime

If you really want to get to know the Eclipse platform then these tools are for you.  The Preference Explorer and the Extension Explorer give you a good picture for how the system is configured.  You get a list of all the defined extensions in the Eclipse system – great for debugging.  You can also see all of the Eclipse preference store and what values and preferences the different plug-ins use.  This doesn’t mean any of this is really “public” information or documented by the component owners but it is a good way to see how other developers use extensions and preferences and what ones are available.

You also get the Property Broker Monitor and Topology Peek tools for assisting in debugging your composite applications and components.

You can download the tools from this wiki entry; which has a link to the GreenHouse place where the download lives.