You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Aaron Davies <aa...@gmail.com> on 2006/05/02 20:34:37 UTC

Re: RMIC Unable to Verify Classes

I'm not having any luck. I recall from the message referenced below
that at the time, the verify stage read CLASSPATH, not the classpath
attribute of the rmic task. Is that still true?

On 4/27/06, Alexey N. Solofnenko <A....@mdl.com> wrote:
> <rmic>'s classpath should be the whole classpath from <javac> and
> <javac> output directory.
>
> - Alexey.
>
> Aaron Davies wrote:
> > Hi, I'm having trouble getting the rmic messages about "Unable to
> > verify class .... It is not defined." to go away. My problem is almost
> > exactly like the one described in
> > <http://marc.theaimsgroup.com/?l=ant-user&m=97069041417063&w=2>,
> > except that adding . to CLASSPATH (the shell path defined when I call
> > ant) doesn't help. I'm running ant under Win2k and have tried this
> > from both CMD and ZSH under cygwin. Any ideas?
> >
> > --
> > Aaron Davies
> > aaron.davies@gmail.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


--
Aaron Davies
aaron.davies@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: RMIC Unable to Verify Classes

Posted by Aaron Davies <aa...@gmail.com>.
I suppose that's one solution, but wouldn't fixing the problem be a better one?

On 5/2/06, Steve Loughran <st...@apache.org> wrote:
> Aaron Davies wrote:
> > AFAICT it's always been like this. This is a warning, not a fatal
> > error, but it's an annoying one that clutters up the build logs.
>
> we could downgrade it. I have to ignore it on a regular basis too.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


--
Aaron Davies
aaron.davies@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: RMIC Unable to Verify Classes

Posted by Steve Loughran <st...@apache.org>.
Aaron Davies wrote:
> AFAICT it's always been like this. This is a warning, not a fatal
> error, but it's an annoying one that clutters up the build logs.

we could downgrade it. I have to ignore it on a regular basis too.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: RMIC Unable to Verify Classes

Posted by Aaron Davies <aa...@gmail.com>.
AFAICT it's always been like this. This is a warning, not a fatal
error, but it's an annoying one that clutters up the build logs.

On 5/2/06, Alexey N. Solofnenko <A....@mdl.com> wrote:
> Hmm... How did they build it before? Maybe there is a list somewhere in
> IDE project files.
>
> - Alexey.
>
> Aaron Davies wrote:
> > Well sure, if you know ahead of time what needs stubs it's going to
> > work! :-) I'm trying to fix the build file for a large team project
> > where I have no idea what's implementing Remote and what isn't. Isn't
> > this what the verify attribute is *for*?
> >
> > On 5/2/06, Alexey N. Solofnenko <A....@mdl.com> wrote:
> >> This is what I do, and it works fine with ANT nightly (but 1.6.5 should
> >> be fine too):
> >>
> >> <rmic classpath="${javac-classpath}" debug="true"
> >> includes="${rmic-sources}" base="${classes-output}" stubversion="1.2" />
> >>
> >> ${rmic-sources} - a list of all .class files that need stubs.
> >>
> >> - Alexey.
> >>
> >> Aaron Davies wrote:
> >> > I'm not having any luck. I recall from the message referenced below
> >> > that at the time, the verify stage read CLASSPATH, not the classpath
> >> > attribute of the rmic task. Is that still true?
> >> >
> >> > On 4/27/06, Alexey N. Solofnenko <A....@mdl.com> wrote:
> >> >> <rmic>'s classpath should be the whole classpath from <javac> and
> >> >> <javac> output directory.
> >> >>
> >> >> - Alexey.
> >> >>
> >> >> Aaron Davies wrote:
> >> >> > Hi, I'm having trouble getting the rmic messages about "Unable to
> >> >> > verify class .... It is not defined." to go away. My problem is
> >> almost
> >> >> > exactly like the one described in
> >> >> > <http://marc.theaimsgroup.com/?l=ant-user&m=97069041417063&w=2>,
> >> >> > except that adding . to CLASSPATH (the shell path defined when I
> >> call
> >> >> > ant) doesn't help. I'm running ant under Win2k and have tried this
> >> >> > from both CMD and ZSH under cygwin. Any ideas?
> >> >> >
> >> >> > --
> >> >> > Aaron Davies
> >> >> > aaron.davies@gmail.com
> >> >> >
> >> >> >
> >> ---------------------------------------------------------------------
> >> >> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> >> > For additional commands, e-mail: user-help@ant.apache.org
> >> >> >
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> >> For additional commands, e-mail: user-help@ant.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Aaron Davies
> >> > aaron.davies@gmail.com
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> > For additional commands, e-mail: user-help@ant.apache.org
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> For additional commands, e-mail: user-help@ant.apache.org
> >>
> >>
> >
> >
> > --
> > Aaron Davies
> > aaron.davies@gmail.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


--
Aaron Davies
aaron.davies@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: RMIC Unable to Verify Classes

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
Hmm... How did they build it before? Maybe there is a list somewhere in 
IDE project files.

- Alexey.

Aaron Davies wrote:
> Well sure, if you know ahead of time what needs stubs it's going to
> work! :-) I'm trying to fix the build file for a large team project
> where I have no idea what's implementing Remote and what isn't. Isn't
> this what the verify attribute is *for*?
>
> On 5/2/06, Alexey N. Solofnenko <A....@mdl.com> wrote:
>> This is what I do, and it works fine with ANT nightly (but 1.6.5 should
>> be fine too):
>>
>> <rmic classpath="${javac-classpath}" debug="true"
>> includes="${rmic-sources}" base="${classes-output}" stubversion="1.2" />
>>
>> ${rmic-sources} - a list of all .class files that need stubs.
>>
>> - Alexey.
>>
>> Aaron Davies wrote:
>> > I'm not having any luck. I recall from the message referenced below
>> > that at the time, the verify stage read CLASSPATH, not the classpath
>> > attribute of the rmic task. Is that still true?
>> >
>> > On 4/27/06, Alexey N. Solofnenko <A....@mdl.com> wrote:
>> >> <rmic>'s classpath should be the whole classpath from <javac> and
>> >> <javac> output directory.
>> >>
>> >> - Alexey.
>> >>
>> >> Aaron Davies wrote:
>> >> > Hi, I'm having trouble getting the rmic messages about "Unable to
>> >> > verify class .... It is not defined." to go away. My problem is 
>> almost
>> >> > exactly like the one described in
>> >> > <http://marc.theaimsgroup.com/?l=ant-user&m=97069041417063&w=2>,
>> >> > except that adding . to CLASSPATH (the shell path defined when I 
>> call
>> >> > ant) doesn't help. I'm running ant under Win2k and have tried this
>> >> > from both CMD and ZSH under cygwin. Any ideas?
>> >> >
>> >> > --
>> >> > Aaron Davies
>> >> > aaron.davies@gmail.com
>> >> >
>> >> > 
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> >> > For additional commands, e-mail: user-help@ant.apache.org
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> >> For additional commands, e-mail: user-help@ant.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> > Aaron Davies
>> > aaron.davies@gmail.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> > For additional commands, e-mail: user-help@ant.apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
>
> -- 
> Aaron Davies
> aaron.davies@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: RMIC Unable to Verify Classes

Posted by Aaron Davies <aa...@gmail.com>.
Well sure, if you know ahead of time what needs stubs it's going to
work! :-) I'm trying to fix the build file for a large team project
where I have no idea what's implementing Remote and what isn't. Isn't
this what the verify attribute is *for*?

On 5/2/06, Alexey N. Solofnenko <A....@mdl.com> wrote:
> This is what I do, and it works fine with ANT nightly (but 1.6.5 should
> be fine too):
>
> <rmic classpath="${javac-classpath}" debug="true"
> includes="${rmic-sources}" base="${classes-output}" stubversion="1.2" />
>
> ${rmic-sources} - a list of all .class files that need stubs.
>
> - Alexey.
>
> Aaron Davies wrote:
> > I'm not having any luck. I recall from the message referenced below
> > that at the time, the verify stage read CLASSPATH, not the classpath
> > attribute of the rmic task. Is that still true?
> >
> > On 4/27/06, Alexey N. Solofnenko <A....@mdl.com> wrote:
> >> <rmic>'s classpath should be the whole classpath from <javac> and
> >> <javac> output directory.
> >>
> >> - Alexey.
> >>
> >> Aaron Davies wrote:
> >> > Hi, I'm having trouble getting the rmic messages about "Unable to
> >> > verify class .... It is not defined." to go away. My problem is almost
> >> > exactly like the one described in
> >> > <http://marc.theaimsgroup.com/?l=ant-user&m=97069041417063&w=2>,
> >> > except that adding . to CLASSPATH (the shell path defined when I call
> >> > ant) doesn't help. I'm running ant under Win2k and have tried this
> >> > from both CMD and ZSH under cygwin. Any ideas?
> >> >
> >> > --
> >> > Aaron Davies
> >> > aaron.davies@gmail.com
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> > For additional commands, e-mail: user-help@ant.apache.org
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> For additional commands, e-mail: user-help@ant.apache.org
> >>
> >>
> >
> >
> > --
> > Aaron Davies
> > aaron.davies@gmail.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


--
Aaron Davies
aaron.davies@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: RMIC Unable to Verify Classes

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
This is what I do, and it works fine with ANT nightly (but 1.6.5 should 
be fine too):

<rmic classpath="${javac-classpath}" debug="true" 
includes="${rmic-sources}" base="${classes-output}" stubversion="1.2" />

${rmic-sources} - a list of all .class files that need stubs.

- Alexey.

Aaron Davies wrote:
> I'm not having any luck. I recall from the message referenced below
> that at the time, the verify stage read CLASSPATH, not the classpath
> attribute of the rmic task. Is that still true?
>
> On 4/27/06, Alexey N. Solofnenko <A....@mdl.com> wrote:
>> <rmic>'s classpath should be the whole classpath from <javac> and
>> <javac> output directory.
>>
>> - Alexey.
>>
>> Aaron Davies wrote:
>> > Hi, I'm having trouble getting the rmic messages about "Unable to
>> > verify class .... It is not defined." to go away. My problem is almost
>> > exactly like the one described in
>> > <http://marc.theaimsgroup.com/?l=ant-user&m=97069041417063&w=2>,
>> > except that adding . to CLASSPATH (the shell path defined when I call
>> > ant) doesn't help. I'm running ant under Win2k and have tried this
>> > from both CMD and ZSH under cygwin. Any ideas?
>> >
>> > --
>> > Aaron Davies
>> > aaron.davies@gmail.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> > For additional commands, e-mail: user-help@ant.apache.org
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
>
> -- 
> Aaron Davies
> aaron.davies@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org