Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was following instructions to manually setup eclipse kepler in Ubuntu 14.04.

Next create an executable for Eclipe at ~/bin/eclipse with your favorite text editor by typing vi ~/bin/eclipse or nano ~/bin/eclipse into the command line. Add the following content:

export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="$HOME/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

Finally, allow the script to be executed:

--From EclipseIDE:Preparing your System

I am new to linux so I was just curious to know following things:

  1. Why we are setting export MOZILLA_FIVE_HOME="/usr/lib/mozilla/" for eclipse? How this is related to eclipse?
  2. What is $* doing in $ECLIPSE_HOME/eclipse $*?
  3. How are we able to run eclipse.exe in ubuntu? I think $ECLIPSE_HOME/eclipse is running eclipse.exe?

My questions could be very basic but I would appreciate any reference/answer. I have tried to search for answer but I am not able to find it.

share|improve this question
Eclipse has its own version for linux. You are following the wrong instructions. Go to this page, it has the right instructions : – Tatakai Wasumi May 25 '14 at 18:58
I am more interested to know the answer of the question rather than setting up eclipse. – ritesh May 26 '14 at 7:19
exe are windows programs – zeitue May 27 '14 at 5:30
Could someone enlighten me about how my 3 questions are duplicate to referred link – ritesh May 27 '14 at 16:23
up vote 2 down vote accepted

Why we are setting export MOZILLA_FIVE_HOME="/usr/lib/mozilla/" for eclipse? How this is related to eclipse?

This is for browser support. Eclipse uses browser to display web pages developed in it.

What is $* doing in $ECLIPSE_HOME/eclipse $*

It is variable substitution. It is replaced with command-line script parameters during script execution. Also, $@ is used for this purpose.

How are we able to run eclipse.exe in Ubuntu? I think $ECLIPSE_HOME/eclipse is running eclipse.exe

Exes are for Windows. In Linux, executable binary files usually don't have any extension (though it's possible to create and run files with any extension you like). Scripts have .sh extension and self-extracted archives often have .run extension. In fact, particular file is executable if it has execution bit which is a special attribute of the file. Read More...

share|improve this answer
Your last sentence needs improving: it is perfectly possible to create a file "executeme.exe" and have it run on Linux ;) Linux just does not care for extensions (those are for human readability). This is what makes it impossible: MS-DOS executable PE for MS Windows (GUI) Intel 80386 32-bit (file *.exe). – Rinzwind May 27 '14 at 6:54

This question ask many times. Linux dose not support any "*.exe" executable to run directly. if you want to run any windows executable file in linux then you have to install "wine".

but i have an question "why you are used windows eclipse to linux ?" because Eclipse is Open Source and also available in All Linux versions. Just go to Eclipse native site and download it for linux. they also guide you to how to run downloaded eclipse in linux.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.