Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
Eclipse has its own version for linux. You are following the wrong instructions. Go to this page, it has the right instructions : askubuntu.com/questions/26632/how-to-install-eclipse –  Tatakai Wasumi May 25 at 18:58
    
I am more interested to know the answer of the question rather than setting up eclipse. –  ritesh May 26 at 7:19
    
exe are windows programs –  zeitue May 27 at 5:30
    
Could someone enlighten me about how my 3 questions are duplicate to referred link –  ritesh May 27 at 16:23
add comment

2 Answers 2

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 at 6:54
add comment

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".

just check this link [http://www.wikihow.com/Install-Wine-on-Ubuntu].

but i suggest you to use native linux software. directly go to Software Manager and install from there.

share|improve this answer
add comment

Your Answer

 
discard

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.