Mac Terminal Turn Jar File To App

Very often, in OS X, when one has a terminal command that needs to be used often, it's convenient to turn that UNIX command into a double-clickable desktop file with a recognizable icon. How can that possibly be done? I'll show you how.

  1. Jar File App
  2. Mac Terminal Turn Jar File To Application
  3. Open Jar File Mac

A new folder will be created, and you can find all the unzipped files there. Use Terminal. To open tar file on Mac using command line, open Terminal. Type syntax like this: tar xvzf desktoparchive.tar.gz. Press Return. To find the extracted files, open Finder and go to the toolbar at the top of your screen. I am using MAC OS X terminal to connect via SSH with my vm in AWS. I am successfully connected from terminal to EC2 instance but now i want to run my java application. I am using both of these commands and none of them seems to work for me. Javac -classpath. Audit.jar MainClass.TestShamirScheme 6 3 // javac command not found java -cp. How to open a JAR file: The best way to open an JAR executable file is to simply double-click it and let the default assoisated application open the file. If you are unable to open the file this way, it may be because you do not have the correct application associated with the extension to view or edit the JAR file. Mar 21, 2019  Along with dumping Java, Apple disconnected their helper apps that would launch a jar on double-click. You may need to run it from the command line. You'll need to reference the java app in the JDK home and use the -jar file.jar option. And it should create a.app file in a folder called release. So to summarize: all you need is your.jar file and build.xml file in the same folder, and then run the command: ant bundle (or whatever you named your target in the build.xml file, I named it bundle) Good luck, hope this helps anyone out there.

OS X is based on BSD UNIX

Here's the basic outline of this tip.

  1. Create a UNIX script with a text editor that contains one or more terminal commands.
  2. Make it executable.
  3. Double click it in the Finder.

It's really quite simple, but there are a few things to be aware of. I'll walk you through it and add some notes as needed.

I. Create a script. UNIX scripts are similar to AppleScript. There are commands and a syntax. From time to time you'll see articles that show how to change an OS X preference from the command line. For example, you may have seen this terminal command that strips the drop shadow from your screenshots:

Note #1. The Terminal app location is /Applications/Utilities/Terminal.app

Scripts are a sequence of commands, managed by the scripting language, to a achieve a task. The easiest way to write a script is to use a text editor, like OS X's built-in TextEdit, found in the Applications folder.

Mac Terminal Turn Jar File To App

Note #2. Make sure the Preferences for TextEdit are set correctly. Preferences > New Document > Plain text. Once set, relaunch TextEdit.

Here's a simple script that uses the 'uptime' command to display how long it's been since your Mac was rebooted.

Note #3. The first line tells OS X to use the Bash scripting language. There are several to chose from. We won't dig into that here.

Copy and paste this script into a new TextEdit file. Call it 'ByYourCommand.txt' Save this file on your desktop.

II. Make the Script Executable.

1. In the Finder, delete the file extension '.txt' The Finder will ask for confirmation.

2. Open the Terminal app and navigate to the file. Substitute your own login name instead of mine. Like this:

3. Still in the terminal, execute this UNIX command:

Note #4. This UNIX command makes the file executable, that is, double-clickable.

Note #5. If you have antivirus software installed, it may object, depending on its preferences, to an executable script being inserted into a file that was created by an OS X text editor. Just ignore the warning.

At this point, you'll notice that the file's icon has changed to this:

III. Double click the file 'ByYourCommand' on the desktop. The Terminal app will launch, the script will be executed, and you'll see the results, like this:

Uptime: one day, 21 h since my last reboot.

If you need to edit the script, you'll have to add the '.txt' extension back. (Or, as the geeks will point out, edit with a UNIX editor like vi. I had to say that.)

This is as far as we'll go with a one line command. Once you get the hang of this and learn a whole lot more, you'll find yourself happily creating your own custom scripts—if you decide to learn Bash or one of the other UNIX shells available. A new door is open to create your own scripts, but you should, of course, learn much more about UNIX and scripting before you go wild with this newfound superpower. A really careless act could render your OS X corrupted and/or unbootable.

Orbital, in order to run a jar file in Mojave, you need to have some implementation of Java installed. Apple deprecated Java 6 years ago. As a result, it is now necessary to install Oracle's java implementation. You can download the latest version here:

Jar File App


Run mac apps on windows. To take a window into fullscreen view, you click on the green Full Screen icon in the top-left of the window. Click it again to go back to standard view. Or choose View Exit Full Screen (Command.

Mac Terminal Turn Jar File To Application


After you have run the installer package, you can verify that it is the active Java installation by typing the following in the Terminal and hitting your return key:


java -version


Please let me know if this resolves your issue. Thanks!

Open Jar File Mac

Mar 20, 2019 8:54 PM