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]
# 1

>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.

IanSchneidera at 2007-7-13 21:10:29 > top of Java-index,Java Essentials,New To Java...
# 2
I think you're looking for a .jar file. [url= http://java.sun.com/docs/books/tutorial/deployment/jar/]This link[/url] should get you started.
mvantuyla at 2007-7-13 21:10:29 > top of Java-index,Java Essentials,New To Java...
# 3
The .jar file creation instructions was what I was looking for. Thanks- Leon
KalEl6355a at 2007-7-13 21:10:29 > top of Java-index,Java Essentials,New To Java...