Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Launching system applications from PersonalJava

0 replies · 1,842 views · Started 09 April 2003

Hi,

I'm using PersonalJava on a P800, and I have some questions on launching system applications from a class:

1) I want to launch the Viewer application, and I'm using the following code to launch it:

Runtime.getRuntime().exec("Z:\\System\\Programs\\AppRun.exe Z:\\System\\Apps\\Viewer\\Viewer.app"😉;

which launches the Viewer, but it displays the following error message:

Error
View window could not open the file - check path and read permissions

Do I have to specify a file here? If so, what arguments do I need to specify in the command to launch the Viewer?

2) I also tried launching the Internet browser from java, with the following code:

Runtime.getRuntime().exec("Z:\\System\\Programs\\AppRun.exe Z:\\System\\Apps\\Internet\\Internet.app"😉;

However, when I run this code, it doesn't launch the browser, but displays a "Not found" dialog. I'm assuming that the app name I'm using, 'Internet', is incorrect here, any ideas how to do this?

3) Is there a document available that specifies all of the arguments supported by all of the system UIQ applications? eg the Internet browser, Video player etc.

thanks,
Derek