Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running eclipse from terminal in mac os x

I've been trying to run eclipse from my mac os x terminal and I'm getting the error that no such eclipse command is found. I added the directory to my PATH variable and I'm able to run this just fine on linux, just not on mac osx.

Anyone know why this is?

like image 569
Glassjawed Avatar asked Jan 08 '23 09:01

Glassjawed


1 Answers

Eclipse is a Mac Application (like Mail.app) rather than a simple executable so you open it from Terminal using the open command:

open /Applications/eclipse.app

This is assuming you are using Eclipse Mars or later, earlier versions of Eclipse have a different path.

like image 196
greg-449 Avatar answered Jan 11 '23 02:01

greg-449