Reputation: 4859
I can't believe this is difficult. But all the stuff I'm reading on Microsoft sites says to run the batch file minimized - which is ridiculous, or launch via VB script???? I have to run a VB script to launch a batch file??? This is insanity.
Upvotes: 1
Views: 3659
Reputation: 908
Perhaps making it a exe file by: http://viralpatel.net/blogs/convert-jar-to-exe-executable-jar-file-to-exe-converting/
Or by doing this:
@echo off
start /B server.jar [arg1] [arg2]
start /B server.jar [arg3] [arg4]
@echo on
Found here: Launch .jar files with command line arguments (but with no console window)
Upvotes: 0
Reputation: 764
@echo off
cd C:/link
javaw -jar jarfile.jar
Use this for your batch file.
Upvotes: 0
Reputation: 12700
javaw -jar myapp.jar
in your batch file.Upvotes: 0