Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Marat Kazey
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Marat Sh", please check your private messages for an important administrative matter.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11878
195
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic