Eclipse: Difference between revisions

No edit summary
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
Tags: Mobile edit Mobile web edit
 
Line 11: Line 11:
<li>Download the file, untar it into ~/opt </li>
<li>Download the file, untar it into ~/opt </li>
<li> and make an executable launcher to start the program (/home/user/bin/eclipse)
<li> and make an executable launcher to start the program (/home/user/bin/eclipse)
<source lang="bash">
<syntaxhighlight lang="bash">
export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="$HOME/opt/eclipse"
export ECLIPSE_HOME="$HOME/opt/eclipse"


$ECLIPSE_HOME/eclipse $*
$ECLIPSE_HOME/eclipse $*
</source>
</syntaxhighlight>
</li>
</li>
<li> start eclipse and add the extras through the 'help' menu </li>
<li> start eclipse and add the extras through the 'help' menu </li>
Line 59: Line 59:
| type = failure
| type = failure
| text = to get Subclipse working on my Ubuntu Intrepid Ibex system, I had to install the Java bindings for Subversion (see http://subclipse.tigris.org/wiki/JavaHL) and also modify my eclipse.ini settings}}
| text = to get Subclipse working on my Ubuntu Intrepid Ibex system, I had to install the Java bindings for Subversion (see http://subclipse.tigris.org/wiki/JavaHL) and also modify my eclipse.ini settings}}
<source lang="bash">
<syntaxhighlight lang="bash">
# provides the JavaHL libraries
# provides the JavaHL libraries
sudo apt-get install libsvn-java
sudo apt-get install libsvn-java
</source>
</syntaxhighlight>
Add to eclipse.ini
Add to eclipse.ini
<source lang="bash">
<syntaxhighlight lang="bash">
-Djava.library.path=/usr/lib/jni
-Djava.library.path=/usr/lib/jni


</source>
</syntaxhighlight>


=== PHPEclipse ===
=== PHPEclipse ===
Line 135: Line 135:


In addition to installing Eclipse, you should definitely be sure to set the Java environement
In addition to installing Eclipse, you should definitely be sure to set the Java environement
<source lang="bash">
<syntaxhighlight lang="bash">
sudo update-java-alternatives --list
sudo update-java-alternatives --list
</source>
</syntaxhighlight>
That command should list something like
That command should list something like
<pre>
<pre>
Line 144: Line 144:
</pre>
</pre>
Then you can set the Sun Microsystems Java as the default with
Then you can set the Sun Microsystems Java as the default with
<source lang="bash">
<syntaxhighlight lang="bash">
sudo update-java-alternatives --set java-6-sun
sudo update-java-alternatives --set java-6-sun
</source>
</syntaxhighlight>


To upgrade, you should be able to just
To upgrade, you should be able to just