I have chosen to use a very simple solution to a simple problem but
it doesnt work.
I have a web application that creates an XML file from a submitted form and
all the rest, i have a simple java application which should allow the user
to browse the file system and find the xml file and then be able to render
that xml as html and show it in a browser.
I am trying to use Runtime.exec() as this:
String filePath; // this is the file path as returned from the JFilechooser
Runtime rt = Runtime.getRuntime();
rt.exec(filepath,null);

this is the error message that i get:

java.io.IOException: CreateProcess:
*** the file path here ***** error=193
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at jsp.gui.SubmissionBrowser.jButton1ActionPerformed(SubmissionBrowser.java:112)
at jsp.gui.SubmissionBrowser.access$100(SubmissionBrowser.java:16)
at jsp.gui.SubmissionBrowser$2.actionPerformed(SubmissionBrowser.java:57)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

doesnt matter what i try to execute i get a similar sort of error.
I have never used exec() but i have used the equivalent of this in C++ without
having any problem.

Any idea what am i doing wrong???

Seb