| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Hi Matt, Double-clicking doesn't work here because the Finder tries to launches the JAR without a terminal attached, so System.in is unavailable and System.out goes to the console.log. I think the easiest way to get what you want is to write a wrapper script, like you mentioned. Like if you're program is called myApp.jar and needs arguments arg1 and arg2, you can create a simple shell script like the following: #! /bin/sh java -jar /path/to/jarfile/myApp.jar arg1 arg2; The only caveat is that the Finder on your users system might not be associating shell scripts with the Terminal application, so your users would have to click "Get Info" for the file in the Finder and specify Terminal in the Open With: section. Then, double-clicking the script will open up a Terminal window and execute your JAR. Hope that helps, Adam Ohren "God does not play dice." -- Albert Einstein On Jul 23, 2007, at 12:42 PM, Matthew Strax-Haber wrote:
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden This email sent to email@hidden
| References: | |
| >Text-Based Java Program (From: Matthew Strax-Haber <email@hidden>) | |
| >Re: Text-Based Java Program (From: Matthew Strax-Haber <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.