Hi Holger,

This is not a Windows problem, but JAVA Runtime.getRuntime().exec() problem.

ULC just delegates the URL to client environment specific BrowserService.

For example, in case of DevelopmentRunner on windows the following command
is executed to bring up the browser:
ClientContext.showDocument("C:\\test  2blanks\\winter.jpg");

cmd /c start "" "C:\test  2blanks\Winter.jpg"

This command works just fine on Windows command line. But in
AllPermissionsBrowserService class (the source for this is part of the
release), showDocument() calls Runtime.getRuntime().exec(cmd) to execute the
above command. exec() is tokenizing the cmd with blank as delimiter and
hence the second blank is lost.

As Ilja has suggested, please convert it the path to  proper URL. Now if you
associate Browser with file type .jpg then the browser comes up and displays
the picture.

Yes there is a problem with MS Picture viewer.

Thanks and regards,

Janak



  -----Original Message-----
  From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Zywietz, Holger
  Sent: Tuesday, November 28, 2006 5:44 PM
  To: [email protected]
  Subject: [ULC-developer] Problem with ClientContext.showDocument(path)


  Hi all!

  I have a problem when I use:

  String path = "C:\\test  2blanks\\Winter.jpg";
  ClientContext.showDocument(path);


  If the param contains two sequenced blanks I get the following error
message:


  As you see, there is only one blank left. Is this a known problem?
  Maybe it's a windows bug.

  Thanks,
  Holger


  I am using:
  ULC Version: 6.0.4
  Java Version 1.4.2_11
  Windows XP


  Würth Phoenix GmbH
  Holger Zywietz

  ITConsultant Business Integration
  Drillberg 6 / Geb. 2
  97980 Bad Mergentheim


  Direct:     +49 07931 91 6278

  E-Mail:     [EMAIL PROTECTED]
  Website:  www.wuerth-phoenix.com

<<attachment: Outlook.jpg>>

Reply via email to