| 24 | | then |
| 25 | | {{{ |
| 26 | | sudo gedit /etc/bash.bashrc |
| 27 | | }}} |
| 28 | | |
| 29 | | At the very end of the file opened in the editor, enter the PATH to where the JDK is installed, for example: |
| 30 | | {{{ |
| 31 | | export JAVA_HOME=/usr/lib/jvm/java |
| 32 | | export PATH=$JAVA_HOME/bin:$PATH |
| 33 | | }}} |
| 34 | | (* please check, your installation could be in some other paths) |
| 35 | | |
| 36 | | As a final check, open another terminal and run: |
| 37 | | {{{ |
| 38 | | echo $JAVA_HOME |
| 39 | | echo $PATH |
| 40 | | }}} |
| 41 | | |
| 42 | | If you get the path to where Java is installed, then you have set up the paths correctly, and the following command should return the Java version. |
| 43 | | {{{ |
| 44 | | javac -version |
| 45 | | }}} |
| 46 | | |
| 47 | | ---- |
| 48 | | ''( '''on Ubuntu 10.04''' )'' installation of Java, Eclipse and plugins from package repositories. |
| | 19 | ''( '''Ubuntu 10.04''' )'' installation of Java, Eclipse and plugins from package repositories. |