Jump to content

Execute Java .jar?


JeremyE
 Share

Recommended Posts

I'm sure this has been asked before, but I couldn't find anything under the search, so I'm posting it as a new topic. How do I use AutoIt to execute a .jar file? I have one that has a batch file, but you can't pin a batch file to the Windows start menu, so I have to either navigate the menus or else (as in this case) navigate to the actual folder where the program is installed in order to run it. It would be nice to use an AutoIt script that uses all the command-line parameters in order to not use the batch file anymore.

Thanks for everything, and definitely thanks for making AutoIt, I've found it very useful.

Link to comment
Share on other sites

Then that's the command you have to use in Run.

An alternative would be to create a shortcut to java.exe with the parameters -jar myfile.jar ; Do not forget to set the correct working directory.

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...