users@jax-rpc.java.net

Re: ant task wscompile frustration

From: trebor iksrazal <iksrazal_at_yahoo.com>
Date: Tue, 14 Jun 2005 10:30:37 -0700 (PDT)

Thanks for the reply.

Its the full Sun JDK that comes with Suse Pro 9.2 .
The solution I came up with - a bit drastic - is to
have an
ant properties tag:

java.tools=/usr/lib/jvm/java-1.4.2-sun-1.4.2.06/lib

And in my build.xml :

    <path id="classpath-jboss">
      ...
      <fileset dir="${java.tools}">
        <include name="tools.jar"/>
      </fileset>
    </path>

And with that all is well ;-)
iksrazal

--- Bobby Bissett - Javasoft <Robert.Bissett_at_Sun.COM>
wrote:

> >
> > /home/crissilva> echo $JAVA_HOME
> > /usr/lib/jvm/java-1.4.2-sun-1.4.2.05
> >
> > [echo] ant thinks java.home is =
> > /usr/lib/jvm/java-1.4.2-sun-1.4.2.05/jre
> >
> > So ant uses the JRE - didn't know that. Question:
> > $JAVA_HOME/jre/lib does not have tools.jar. How do
> I
> > tell ANT via $JAVA_HOME to get tools.jar? ../lib
> > seemingly doesn't work.
>
> Do you have just the jre installed and not the full
> jdk? Without the
> tools.jar file, wscompile will not be able to
> compile the code that it
> generates.
>
> Cheers,
> Bobby
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail:
> users-help_at_jax-rpc.dev.java.net
>
>



                
__________________________________
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and more. Check it out!
http://discover.yahoo.com/mobile.html