How can I run a jnlp application with console?

Horcrux7 picture Horcrux7 · Oct 31, 2012 · Viewed 10.9k times · Source

I have a jnlp application that terminate on some systems. I think it is an exception which terminate my application directly. That I want start it with a console window.

Is there an replacement for javaws xyz.jnlp with a java command?

Answer

Marcin Stachniuk picture Marcin Stachniuk · Jun 15, 2015

You can try to set deployment.console.startup.mode to SHOW to see java console. Either via deployment file (more info: Deployment Configuration File and Properties) or command line parameter:

javaws -J-Ddeployment.console.startup.mode=SHOW <JNLP url>

Note that, in both cases, it will only work if the JNLP author has not locked the property via deployment.console.startup.mode.locked.

If it doesn't help just try to run some Hello World Application with Web Start and connect to it with jConsole. Then you can find somewhere a path to the whole javaws command.