The java-module is to distribute additional classes for ejb or web applications.
Classes that have a main method are normaly not supported by the server.
Also input or direct use of awt or swing in such JEE application is against the spec.
Or do I understand something wrong?
thanks for the response. mmm, when I work before with Glassfish, I could do that. In the ear I've the kernel jar and the "gui" jar (done with swing).
The main idea to do this is that I deploy the ear in a server, the people downloads the jnlp and start working with my java program. If I do an update to the program (i redeploy the ear), when they click the jnlp again, the program will be the last version always.
I'm wrong, what you do is to you use Java WebStart.
This should be possible, but I have done this a long time ago with, let me think, JBoss 3.x or 4.0.
So I'm not able to help you ATM, sorry