Searching installed programs

Hi,

is it possible to search the installed programs (e.g. MS Word) on a system using Java?

I am developing a Java application that runs MSExcel in between. I just want to validate whether Excel exists on the user system before I launch the excel in my application.

Kindly help me to find out the right material for this.

-Atul

[357 byte] By [Bool-a] at [2007-10-3 4:39:16]
# 1

> is it possible to search the installed programs (e.g.

> MS Word) on a system using Java?

Pure Java: no. Except by searching the file system and guessing from the files found.

JNI: probably, by simply searching the registry. But that's not a Java question then. There should be 3rd party libraries available for reading the registry which you can use, though.

CeciNEstPasUnProgrammeura at 2007-7-14 22:43:11 > top of Java-index,Java Essentials,New To Java...
# 2

> Hi,

> is it possible to search the installed programs (e.g.

> MS Word) on a system using Java?

> I am developing a Java application that runs MSExcel

> in between. I just want to validate whether Excel

> exists on the user system before I launch the excel

> in my application.

> Kindly help me to find out the right material for

> this.

>

> -Atul

Why can't you just try to launch it, and catch any exceptions?

Kaj

kajbja at 2007-7-14 22:43:11 > top of Java-index,Java Essentials,New To Java...