make an executable....
Hi all,
Quick question that I can't seem to find that answer to. I made an application that uses RMI and would like to make an executable file that I can double click instead of typing "java myProgram" in the command prompt. I also need it to start rmiregistry. Can anyone tell me what the commands are to do this in windows?
- Leon
[352 byte] By [
KalEl6355a] at [2007-10-2 19:25:06]

>Quick question that I can't seem to find that answer to.
You didn't search hard enough.
>I made an application that uses RMI and would like to make an executable file that I can
>double click instead of typing "java myProgram" in the command prompt.
This is probably the most common question asked on this forum.
>I also need it to start rmiregistry.
java.rmi.registry.LocateRegistry.createRegistry(int port)
You can put this directly in your application, though you might also add some code to find an open port or use an existing registry if one is already started.