![]() ![]() ![]() I'm not a developer, I'd like to know if I can achieve this just using what's shipped on my Mac.Įarlier versions of MacOs shipped with a more complete Java environment, and a lot of the help I find out there refers to earlier versions. In this tutorial, well first learn how to create a JAR application. Hereafter, well refer to it as a JAR application. Well focus on the standalone application scenario in this article. However, there are times a JAR file itself represents a standalone application or a web application. I know this can be done by installing a full JDK and using the java command instead of the built-in Jar Launcher, or compiling my jar into a Mac executable. Typically, every meaningful application includes one or more JAR files as dependencies. Maybe the problem is with "Jar Launcher", maybe it won't pass arguments through to the java app? That does not work, the application does not receive the hello argument. Now I want to pass arguments, let's say "-hello" After that I can run a command line "open myApp.jar" and that works too, the open command uses Jar Launcher to open it. I can run the jar file with Jar Launcher, I did it from Finder and it works, but without command line arguments. It's /System/Libary/CoreServices/Jar\ Launcher.app. This ought to run myApp and pass it "-hello" but it doesn't. ![]() Is it possible to use "Jar Launcher" on Mac to pass command line arguments to a java app? For example: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |