users@jax-rpc.java.net

RE: wscompile error

From: Kevin Jones <kevinj_at_develop.com>
Date: Thu, 19 Aug 2004 20:02:50 +0100

I could accept that if I had JDK 1.4 installed :)

Maybe it's the fact that Ant is built using JDK 1.4?

BTW when I do install 1.4 this all works fine,

Kevin Jones
http://kevinj.develop.com

> -----Original Message-----
> From: Jitendra Kotamraju [mailto:Jitendra.Kotamraju_at_Sun.COM]
> Sent: 19 August 2004 19:53
> To: users_at_jax-rpc.dev.java.net
> Subject: Re: wscompile error
>
> Kevin Jones wrote:
> > I now get a ClassFormatError com.sun.tools.javac.main.Main
> >
> > (BTW I assume you meant the wscompile task, although setting
> > fork="true" on the javac task did fix another problem),
> >
> > Kevin Jones
> > http://kevinj.develop.com
>
> Somehow JDK1.4.x is loading your JDK 1.5 classes. Check how
> JDK1.4 is coming into the picture, may be ant process is using 1.4.
>
> You may also want to try a wrapper for ant by setting the
> appropriate classpath.
> $JAVACMD -classpath $CLASSPATH org.apache.tools.ant.Main "$@"
>
> Jitu
>
> >
> >
> >>-----Original Message-----
> >>From: Marc Hadley [mailto:Marc.Hadley_at_Sun.COM]
> >>Sent: 19 August 2004 17:36
> >>To: users_at_jax-rpc.dev.java.net
> >>Subject: Re: wscompile error
> >>
> >>Try setting fork="true" on the javac task.
> >>
> >>Marc.
> >>
> >>On Aug 19, 2004, at 12:11 PM, Kevin Jones wrote:
> >>
> >>
> >>>As an addition, if I take the command line that Ant spits
> >>
> >>out and run
> >>
> >>>it everything works fine. Is this an Ant classloader problem?
> >>>
> >>>Kevin Jones
> >>>http://kevinj.develop.com
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: Kevin Jones [mailto:kevinj_at_develop.com]
> >>>>Sent: 19 August 2004 17:01
> >>>>To: users_at_jax-rpc.dev.java.net
> >>>>Subject: wscompile error
> >>>>
> >>>>I have a weird error. I'm trying to run wscompile from
> >>
> >>within Ant on
> >>
> >>>>Linux with JDK 1.5 and I'm seeing a
> >>>>
> >>>>com.sun.tools.javac.Main is not available in the classpath.
> >>>>
> >>>>error.
> >>>>
> >>>>I've added ${env.JAVA_HOME}/lib to the classpath (using an Ant
> >>>>fileset so it picks up all the jar files in there), and if
> >>
> >>I look at
> >>
> >>>>the command line that wscompile is using then
> >>>>/usr/java/jdk1.5.0/lib/tools.jar is there, amongst many others!
> >>>>
> >>>>I've used wscompile with JDK 1.5 before, and this same buildfile
> >>>>works fine on Windows. Oh and the same ant build file
> >>
> >>works fine with
> >>
> >>>>Eclipse (Eclipse has a global entry for
> >>>>/usr/java/jdk1.5.0/lib/tools.jar
> >>>>
> >>>>Am I doing something stupid?
> >>>>
> >>>>Kevin Jones
> >>>>http://kevinj.develop.com
> >>>>
> >>>>
> >>>>
> >>
> >>------------------------------------------------------------
> ---------
> >>
> >>>>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
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>------------------------------------------------------------
> ---------
> >>
> >>>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
> >>>
> >>>
> >>
> >>---
> >>Marc Hadley <marc.hadley at sun.com>
> >>Web Products, Technologies and Standards, Sun Microsystems.
> >>
> >>
> >>------------------------------------------------------------
> ---------
> >>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
> >>
> >>
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > 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
> >
>
>
> ---------------------------------------------------------------------
> 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
>
>


---------------------------------------------------------------------
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