File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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
Author

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

Marat Kazey
Greenhorn

Joined: Sep 06, 2008
Posts: 1
Hi,
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/
./app
(get error: Bad exutable (or shared library))

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

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61421
    
  67

"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: 11479
    
  94

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/