This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Launch JNLP within application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Launch JNLP within application" Watch "Launch JNLP within application" New topic

Launch JNLP within application

Ronnie Phelps
Ranch Hand

Joined: Mar 12, 2001
Posts: 329
I'm trying to launch another JNLP file from within an application that was deployed via webstart.
I use the following Command:


and get the following error: CreateProcess: c:\testing\launchNewWindow.jnlp error=193
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(
at java.lang.Runtime.exec(
at java.lang.Runtime.exec(
at java.lang.Runtime.exec(
at TestVM$1.actionPerformed(
at javax.swing.AbstractButton.fireActionPerformed(
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(
at javax.swing.DefaultButtonModel.fireActionPerformed(
at javax.swing.DefaultButtonModel.setPressed(
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
at java.awt.Component.processMouseEvent(
at java.awt.Component.processEvent(
at java.awt.Container.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Container.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.LightweightDispatcher.retargetMouseEvent(
at java.awt.LightweightDispatcher.processMouseEvent(
at java.awt.LightweightDispatcher.dispatchEvent(
at java.awt.Container.dispatchEventImpl(
at java.awt.Window.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(

Does anyone know why this is happening? I even tried using the absolute path to the file and I keep getting the same error. Is there anyway that I can find out what error 193 is?
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
hi Ronnie
jnlp file can be just executed from the prompt by typing the name as its not a program/executable.
we need "javaws" to run it.
i tried following from my computer,

it worked for me. here, draw.jnlp is the SUN's Draw application.
tho u'll have to resolve path issues etc to see if u can run "javaws" as just "javaws" to avoid system dependencies etc...
I agree. Here's the link:
subject: Launch JNLP within application
It's not a secret anymore!