Thanks Mark. Just a glance at these two files, it seems tools.jar under jdk/lib contains the tools.jar under jdk/jre/lib. I am running the ant test simply by renaming tools.jar to tools.jar.back under the jdk/jre/lib.
On Mon, Jun 22, 2009 at 4:46 PM, Mark Hindess <[email protected]>wrote: > > In message <[email protected]>, > Charles Lee writes: > > > > Hi guys, > > > > I am running harmony+drlvm against ant now. And the same problem occurred > as > > mentioned in the quote. The reason is we have a tools.jar under the path > > jdk/jre/lib. This jar file contains com.sun.jdi, but do not contain > > com.sun.tools. However, we also has a tools.jar under the path jdk/lib. > This > > jar file contains both sun packages. And I believe jdk/lib is the right > > place which tools.jar should located. > > > > Does somebody know why we have two tools.jar in our harmony+drlvm? > > jdk/jre/lib/tools.jar contains the classes for the tools in jdk/jre/bin > and lib/tools.jar contains the classes for the tools in jdk/bin. > > There is some duplicate code between these and fixing this is on my todo > list. > > Regards, > Mark. > > > On Thu, Mar 12, 2009 at 6:06 PM, Charles Lee <[email protected]> > wrote: > > > > > Hi guys, > > > > > > I am investigating the pdebuild EUT test and fall in confusion. There > is a > > > fail test called testBug114510, and the fail reason is the > java.lang.Object > > > can not find when using hdk. Another thing is when I try to use ant to > buil > > d > > > a build.xml, which contains a javac target, the build fail and returns > : > > > "Unable to find a javac compiler; > > > com.sun.tools.javac.Main is not on the classpath. > > > Perhaps JAVA_HOME does not point to the JDK. > > > It is currently set to > > > "/home/lee/workspace/harmony/All/trunk/target/hdk/jdk/jre" > > > The JAVA_HOME I set is > > > "/home/lee/workspace/harmony/All/trunk/target/hdk/jdk/". > > > > > > Any idea about this? > > > > > > -- > > > Yours sincerely, > > > Charles Lee > > > > > > > > > > > > -- > > Yours sincerely, > > Charles Lee > > > > --0016e644dd4683d973046ceb7bdd-- > > > > > -- Yours sincerely, Charles Lee
