Sign in to follow this  
Followers 0
JeremyE

Execute Java .jar?

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



What's in the batch file would be the best place to start :x I imagine it would be a simple conversion.

Share this post


Link to post
Share on other sites

java -jar myfile.jar

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0