Skip to Content
Former Member
May 04, 2015 at 04:31 PM

CLM - Open Webpage via script


Hi experts,

for a customer request we have to write a toolbar script which opens a specific web page.

Usual java libraries seem not to work in SAP Sourcing.

This is the script which works fine in eclipse

URI uriToken;

try {

uriToken = new URI(urlToken);

Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;

if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {



} catch (Exception e1) {

throw doc.createApplicationException("", e.toString());


But the page is not opened when calling the script in sourcing.

Does anyone have experiences with this topic?

Thanks in advance and regards,