I am using Ubuntu 12.04 (LTS). In my Eclipse project, I need to use the com.sun.tools.attach package. However, my JRE system library does not include the tools.jar file that contains the package.
I tried installing different JREs and JDKs for both Java 6 and 7. I noticed that some of them have the mentioned jar file in their libs folder, but Eclipse still cannot include it in its class path when choosing JRE . Referencing tools.jar directly solves the problem, but since this is a common project, I am not allowed to change the classpath, and therefore this is not a viable solution for me.
My friend uses a MAC with the same version of Eclipse and JRE by default and does not have this problem. What we found out is that for him tools.jar is part of classes.jar, which is not relevant to my setup (I don't have .jar classes at all).
What do you think could be the source of this problem? Any advice would be greatly appreciated.
Thanks guys!!!
source share