Java web start without X
I need to start my application in different Linux servers using SSH. I thought to use java web start so I can pack my application once and run it on the servers by dynamically downloading the application. The big problem is that the server does not have X s开发者_StackOverflowtarted and when I launch the command
javaws -Xnosplash
the application returns immediately with no output.
Is there a way to get the stdout/stderr of the application to understand what is going wrong?
Edit: Sorry the description is incomplete. The application does not use a GUI, it is supposed to run as a command line application. I need JWS because I can use different launch files with an high number of parameters for testing purposes, and I can deploy the application once, and run it on multiple servers.
Now when I run it using the java command everything works fine, with javaws the commands returns quietly and I do not know what is going wrong.
p.s. I cannot see any logs under /.java/* directory
we run several applications that needs a display to run correctly
On Linux, we're using xvfb with great success.
I don't think AWT/Swing classes can initialize themselves without display/framebuffer
I would suggest you use OpenJDK - it shares most of the code with the JDK, but it uses its own open source implementation of Java web start. If it doesn't already support this, you can probably modify it to run in a text-based way fairly easily.
Is there a way to get the stdout/stderr of the application to understand what is going wrong?
On Linux, Java Web Start (by default) puts trace files in
~/.java/deployment/log/
http://download.oracle.com/javase/1.5.0/docs/guide/deployment/deployment-guide/tracing_logging.html
精彩评论