How to run a Java EE desktop application client outside Netbeans?
If I double click jar
, it says "java exception". All (client, ejb
and web
) modules are deployed, and glassfish
and desktop client jar
are on same machine (Windows).
I've follwed this tut http://docs.oracle.com/javaee/1.2.1/devguide/html/Client3.html
and when I run runclient -client ConverterApp.ear -name MyConverterClient
in cmd
it says runclient unknown command.
Java application can be executed using java virtual machine as following:
java -cp yourjar.jar
YourMainClass`
If your main class belongs to package you should write something like the following:
java -cp yourjar.jar
com.mycompany.YourMainClass`
I hope this helps although I do not really understand what does "Java EE desktop application client" mean. I hope this aa kind of java application that connects to your Java EE backend.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.