I am using Ubuntu 12.04(LTS). In my project in Eclipse I need to use the com.sun.tools.attach package. However, my JRE system library does not include the tools.jar file whi
I had exactly the same problem on Ubuntu 12.10 and in my case managed to solve it by adding a reference to the current Java binaries folder to my PATH variable.
PATH="$PATH:/usr/local/java/current/bin"
Or
PATH="$PATH:$JAVA_HOME/bin"
Just edit either .profile or .bash_profile in your /home/ folder and you should be fine. If these files doesn't exist just create one of them.
Note: make sure your are using JDK and not JRE