Run java and .jar app in terminal?

I've make/install some commandline programs in the past, but my tiny experience has failed me for this java file.

Ipswitch has a java program that they provide that provides encrypted ftp transport via https. Here is the relevant passage from their guide:

"
To "install" MOVEit Xfer under Java, simply extract the contents of the MOVEit Xfer for Java archive file into a directory. To run MOVEit Xfer, you will either need to have a Java runtime executable in your command-line "executable path" or explicitly provide a path to that executable in the command line.
"

OK, the folder contains a xfer.jar file, some example .bat files and the html/support for their help guide.

Seeing as it's a .jar and not a .java file makes me think I could drop it in my /local/ folder.

I believe /local is in my PATH, but I'm finding no java love.

I had thought the .jar was executable, but I'm showing my ignorance. How would my command look like with the executable it's looking for? thanx, sam

17-inch Powerbook, Mac OS X (10.4.8)

Posted on Aug 25, 2009 10:44 AM

Reply
3 replies

Aug 25, 2009 11:47 AM in response to Sam Walton

Hi Sam,

You can indeed launch a jar file from the command line, with the following command:

java -jar yourfile.jar

As well as this you can assign "Jar Launcher" as the default app. to use when you double-click a jar file, as follows (I don't believe you need the developer tools installed for this):


http://macosx.com/tech-support/mac/how-to-execute-a-jar-file-in-os-x/9549.html

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Run java and .jar app in terminal?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.