jQuery in Action, 3rd edition
The moose likes Mac OS and the fly likes how-to run app from app.app/Content/MacOS/ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "how-to run app from app.app/Content/MacOS/" Watch "how-to run app from app.app/Content/MacOS/" New topic

how-to run app from app.app/Content/MacOS/

Marat Kazey

Joined: Sep 06, 2008
Posts: 1
I need to run Java application from appName.app/Content/MacOS/ folder,
if I do it get error:
Bad exutable (or shared library)

I try:
open terminal
cd appName.app/Content/MacOS/
(get error: Bad exutable (or shared library))

Please, ask, maybe I need set some system variable,
how-to launch this application with ./app

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63227

"Marat Sh", please check your private messages for an important administrative matter.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11730

Hi Marat,

Do the following steps work for you (and are they similar to what you want to have happen)?

Immediately after typing that last line, a terminal window opened on my computer - does it on yours? Is that similar to what you are trying to achieve?

[And no, I don't normally use Terminal for anything (I prefer iTerm) but at least it exists on all installations]

Regards, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I agree. Here's the link: http://aspose.com/file-tools
subject: how-to run app from app.app/Content/MacOS/
jQuery in Action, 3rd edition