This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Mac OS and the fly likes how-to run app from Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "how-to run app from" Watch "how-to run app from" New topic

how-to run app from

Marat Kazey

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

I try:
open terminal
(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: 62118

"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: 11608

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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: how-to run app from