I created a Java application that uses an argument from main(String[] args)
. In Windows, I can open it by creating an .lnk
file with the following target:
C:\ProgramData\Oracle\Java\javapath\javaw.exe -jar ./theApp.jar theArgument
Is there any way to do this in Mac OS X without using command line?
You can create a bash
#!/usr/bin/env bash
$JAVA_HOME/java -jar ./theapp.jar theArgument
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.