Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2929  / 2 Years ago, mon, february 7, 2022, 9:08:38

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.


More From » java

 Answers
6

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


[#25003] Tuesday, February 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olfdit

Total Points: 118
Total Questions: 98
Total Answers: 97

Location: Honduras
Member since Fri, Nov 25, 2022
1 Year ago
;