Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: how do i make executeable jar files
|
Posted: Jul 23, 2002 7:30 PM
|
|
Yes, if you are doing this for the Windows platform, search this forum for a detailed explanation of setting that up, as Jay suggests.
Furthermore (I don't know if I mentioned this before), in Win-NT/2K/XP you can use the commands ASSOC and FTYPE to set up the file associations and types from the command line (which also makes easy to script). Type either of these two commands with a /? parameter to get some help. Once you have used these to set up jar and class files, you can run the program just by typing the name of the file (without the extension, even, if you also set up your PATHEXT environment variable to include .JAR and .CLASS). Then, when you set up shortcuts (or icons), or when you double-click in Explorer, your programs will run as if they were native Windows programs. By the way, for GUI apps, you'll probably want to use javaw, not java, so the spurious console window doesn't appear.
In addition to Java programs, I have set up my environment this way for Python scripts. It changes this:c:\Python22\Python e:\code\python\HexDumper.py javac.exe toHexDumper javac.exe
|
|