Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run a jnlp application with console?

Tags:

java

console

jnlp

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?

like image 200
Horcrux7 Avatar asked Oct 31 '12 09:10

Horcrux7


People also ask

How do I debug a JNLP file?

jnlp file with verbose tracing, perform the following steps: Enable tracing in the local JRE control panel. Go to Java Control Panel > Advanced > Debugging and select the Enable tracing option. Run the command: <JRE_HOME>/bin/javaws -verbose <downloaded jnlp file path> .


1 Answers

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.

like image 156
Marcin Stachniuk Avatar answered Oct 03 '22 05:10

Marcin Stachniuk