You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@aries.apache.org by John Croucher <th...@gmail.com> on 2013/04/29 23:59:06 UTC

Main Sample Fails To Build

Hi,

I am trying to follow a tutorial which is using the Aries "main" sample.

So I downloaded Aries Samples 1.0.0 (Source, ready to build) from current
releases but it is failing to build when I issue mvn install command.

The last of the several errors is:

[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
could not parse error message: warning: [options] bootstrap class path not
set in conjunction with -source 1.5
C:\samples-1.0.0-source-release\samples-1.0.0\twitter\twitter-bundle\src\main\java\org\apache\aries\sample\twitter\TwitterQuery.java:45:
error: incompatible types
                    for (Tweet tweet : result.getTweets()) {
                                                       ^

The target directory has not jar files.  I am new to this and am not sure
how to proceed to get a proper build.

Re: Main Sample Fails To Build

Posted by Jeremy Hughes <jp...@gmail.com>.
Hi, I posted a link in ARIES-1060 that describes it:

https://blogs.oracle.com/darcy/entry/bootclasspath_older_source

I put in a change in ARIES-1060 which caused the problem to go away
without needing the bootclasspath to be set. But this morning this has
recurred for me in building the util module. What's odd is I get the
error in building at the util level and it complains in building
util-r42 but building at util-r42 level and all works fine.

Jeremy

On 2 May 2013 11:22, Tom Mercelis <to...@gmail.com> wrote:
> Hello,
>
> If you're refering to: "could not parse error message: warning: [options]
> bootstrap class path not set in conjunction with -source 1.5"; I've read
> about that. When building with a certain source compatibility level; you
> also need to link to the right rt.jar; In Java 7 the rt.jar for Java 5 is
> not included (it wasn't in Java 6 either); but now Java 7 compiler detects
> this as an error.
>
> I was looking for a website that explained it, but can't find it atm.
>
> Kind regards
>
>
> 2013/5/1 Jeremy Hughes <jp...@gmail.com>
>>
>> Hi John,
>>
>> Yes, the compile problem with Java 7 is now fixed. I created ARIES-1060
>> and put details in there. I fear my fix has just skirted an underlying
>> problem with using Java 7 but I don't quite know what at the moment. Please
>> let us know if you have other troubles using Java 7.
>>
>> To get the latest samples you'll need to checkout the latest from SVN.
>>
>> Thanks,
>> Jeremy
>>
>>
>>
>> On 1 May 2013 00:44, John Croucher <th...@gmail.com> wrote:
>>>
>>> Hi Jeremy,
>>>
>>> Thanks for the reply.  I was using Java 7.
>>>
>>> When you mention you checked in a fix, does that mean you fixed the
>>> compile issue with Java 7?  Also, would you still like me to a open a Jira
>>> issue?
>>>
>>> Thanks,
>>>
>>> John
>>>
>>>
>>> On Tue, Apr 30, 2013 at 5:36 PM, Jeremy Hughes <jp...@gmail.com>
>>> wrote:
>>>>
>>>> Hi, I've checked in a fix under ARIES-1060 r1477840.
>>>>
>>>> Regards,
>>>> Jeremy
>>>>
>>>>
>>>> On 30 April 2013 16:45, Jeremy Hughes <jp...@gmail.com> wrote:
>>>>>
>>>>> Hi John, I pulled down that the samples-1.0.0-source-release.zip and
>>>>> used a clean local maven repo. All built fine with Java 5 and 6 but not Java
>>>>> 7. Not sure why yet. Could you open a JIRA issue please?
>>>>>
>>>>> Thanks,
>>>>> Jeremy
>>>>>
>>>>>
>>>>> On 29 April 2013 22:59, John Croucher <th...@gmail.com> wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am trying to follow a tutorial which is using the Aries "main"
>>>>>> sample.
>>>>>>
>>>>>> So I downloaded Aries Samples 1.0.0 (Source, ready to build) from
>>>>>> current releases but it is failing to build when I issue mvn install
>>>>>> command.
>>>>>>
>>>>>> The last of the several errors is:
>>>>>>
>>>>>> [ERROR] BUILD FAILURE
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Compilation failure
>>>>>> could not parse error message: warning: [options] bootstrap class path
>>>>>> not set in conjunction with -source 1.5
>>>>>>
>>>>>> C:\samples-1.0.0-source-release\samples-1.0.0\twitter\twitter-bundle\src\main\java\org\apache\aries\sample\twitter\TwitterQuery.java:45:
>>>>>> error: incompatible types
>>>>>>                     for (Tweet tweet : result.getTweets()) {
>>>>>>                                                        ^
>>>>>>
>>>>>> The target directory has not jar files.  I am new to this and am not
>>>>>> sure how to proceed to get a proper build.
>>>>>
>>>>>
>>>>
>>>
>>
>

Re: Main Sample Fails To Build

Posted by Tom Mercelis <to...@gmail.com>.
Hello,

If you're refering to: "could not parse error message: warning: [options]
bootstrap class path not set in conjunction with -source 1.5"; I've read
about that. When building with a certain source compatibility level; you
also need to link to the right rt.jar; In Java 7 the rt.jar for Java 5 is
not included (it wasn't in Java 6 either); but now Java 7 compiler detects
this as an error.

I was looking for a website that explained it, but can't find it atm.

Kind regards


2013/5/1 Jeremy Hughes <jp...@gmail.com>

> Hi John,
>
> Yes, the compile problem with Java 7 is now fixed. I created ARIES-1060
> and put details in there. I fear my fix has just skirted an underlying
> problem with using Java 7 but I don't quite know what at the moment. Please
> let us know if you have other troubles using Java 7.
>
> To get the latest samples you'll need to checkout the latest from SVN.
>
> Thanks,
> Jeremy
>
>
>
> On 1 May 2013 00:44, John Croucher <th...@gmail.com> wrote:
>
>> Hi Jeremy,
>>
>> Thanks for the reply.  I was using Java 7.
>>
>> When you mention you checked in a fix, does that mean you fixed the
>> compile issue with Java 7?  Also, would you still like me to a open a Jira
>> issue?
>>
>> Thanks,
>>
>> John
>>
>>
>> On Tue, Apr 30, 2013 at 5:36 PM, Jeremy Hughes <jp...@gmail.com>wrote:
>>
>>> Hi, I've checked in a fix under ARIES-1060 r1477840.
>>>
>>> Regards,
>>> Jeremy
>>>
>>>
>>> On 30 April 2013 16:45, Jeremy Hughes <jp...@gmail.com> wrote:
>>>
>>>> Hi John, I pulled down that the samples-1.0.0-source-release.zip and
>>>> used a clean local maven repo. All built fine with Java 5 and 6 but not
>>>> Java 7. Not sure why yet. Could you open a JIRA issue please?
>>>>
>>>> Thanks,
>>>> Jeremy
>>>>
>>>>
>>>> On 29 April 2013 22:59, John Croucher <th...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am trying to follow a tutorial which is using the Aries "main"
>>>>> sample.
>>>>>
>>>>> So I downloaded Aries Samples 1.0.0 (Source, ready to build) from
>>>>> current releases but it is failing to build when I issue mvn install
>>>>> command.
>>>>>
>>>>> The last of the several errors is:
>>>>>
>>>>> [ERROR] BUILD FAILURE
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Compilation failure
>>>>> could not parse error message: warning: [options] bootstrap class path
>>>>> not set in conjunction with -source 1.5
>>>>> C:\samples-1.0.0-source-release\samples-1.0.0\twitter\twitter-bundle\src\main\java\org\apache\aries\sample\twitter\TwitterQuery.java:45:
>>>>> error: incompatible types
>>>>>                     for (Tweet tweet : result.getTweets()) {
>>>>>                                                        ^
>>>>>
>>>>> The target directory has not jar files.  I am new to this and am not
>>>>> sure how to proceed to get a proper build.
>>>>>
>>>>
>>>>
>>>
>>
>

Re: Main Sample Fails To Build

Posted by Jeremy Hughes <jp...@gmail.com>.
Hi John,

Yes, the compile problem with Java 7 is now fixed. I created ARIES-1060 and
put details in there. I fear my fix has just skirted an underlying problem
with using Java 7 but I don't quite know what at the moment. Please let us
know if you have other troubles using Java 7.

To get the latest samples you'll need to checkout the latest from SVN.

Thanks,
Jeremy



On 1 May 2013 00:44, John Croucher <th...@gmail.com> wrote:

> Hi Jeremy,
>
> Thanks for the reply.  I was using Java 7.
>
> When you mention you checked in a fix, does that mean you fixed the
> compile issue with Java 7?  Also, would you still like me to a open a Jira
> issue?
>
> Thanks,
>
> John
>
>
> On Tue, Apr 30, 2013 at 5:36 PM, Jeremy Hughes <jp...@gmail.com>wrote:
>
>> Hi, I've checked in a fix under ARIES-1060 r1477840.
>>
>> Regards,
>> Jeremy
>>
>>
>> On 30 April 2013 16:45, Jeremy Hughes <jp...@gmail.com> wrote:
>>
>>> Hi John, I pulled down that the samples-1.0.0-source-release.zip and
>>> used a clean local maven repo. All built fine with Java 5 and 6 but not
>>> Java 7. Not sure why yet. Could you open a JIRA issue please?
>>>
>>> Thanks,
>>> Jeremy
>>>
>>>
>>> On 29 April 2013 22:59, John Croucher <th...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am trying to follow a tutorial which is using the Aries "main" sample.
>>>>
>>>> So I downloaded Aries Samples 1.0.0 (Source, ready to build) from
>>>> current releases but it is failing to build when I issue mvn install
>>>> command.
>>>>
>>>> The last of the several errors is:
>>>>
>>>> [ERROR] BUILD FAILURE
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Compilation failure
>>>> could not parse error message: warning: [options] bootstrap class path
>>>> not set in conjunction with -source 1.5
>>>> C:\samples-1.0.0-source-release\samples-1.0.0\twitter\twitter-bundle\src\main\java\org\apache\aries\sample\twitter\TwitterQuery.java:45:
>>>> error: incompatible types
>>>>                     for (Tweet tweet : result.getTweets()) {
>>>>                                                        ^
>>>>
>>>> The target directory has not jar files.  I am new to this and am not
>>>> sure how to proceed to get a proper build.
>>>>
>>>
>>>
>>
>

Re: Main Sample Fails To Build

Posted by John Croucher <th...@gmail.com>.
Hi Jeremy,

Thanks for the reply.  I was using Java 7.

When you mention you checked in a fix, does that mean you fixed the compile
issue with Java 7?  Also, would you still like me to a open a Jira issue?

Thanks,

John


On Tue, Apr 30, 2013 at 5:36 PM, Jeremy Hughes <jp...@gmail.com> wrote:

> Hi, I've checked in a fix under ARIES-1060 r1477840.
>
> Regards,
> Jeremy
>
>
> On 30 April 2013 16:45, Jeremy Hughes <jp...@gmail.com> wrote:
>
>> Hi John, I pulled down that the samples-1.0.0-source-release.zip and used
>> a clean local maven repo. All built fine with Java 5 and 6 but not Java 7.
>> Not sure why yet. Could you open a JIRA issue please?
>>
>> Thanks,
>> Jeremy
>>
>>
>> On 29 April 2013 22:59, John Croucher <th...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am trying to follow a tutorial which is using the Aries "main" sample.
>>>
>>> So I downloaded Aries Samples 1.0.0 (Source, ready to build) from
>>> current releases but it is failing to build when I issue mvn install
>>> command.
>>>
>>> The last of the several errors is:
>>>
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Compilation failure
>>> could not parse error message: warning: [options] bootstrap class path
>>> not set in conjunction with -source 1.5
>>> C:\samples-1.0.0-source-release\samples-1.0.0\twitter\twitter-bundle\src\main\java\org\apache\aries\sample\twitter\TwitterQuery.java:45:
>>> error: incompatible types
>>>                     for (Tweet tweet : result.getTweets()) {
>>>                                                        ^
>>>
>>> The target directory has not jar files.  I am new to this and am not
>>> sure how to proceed to get a proper build.
>>>
>>
>>
>

Re: Main Sample Fails To Build

Posted by Jeremy Hughes <jp...@gmail.com>.
Hi, I've checked in a fix under ARIES-1060 r1477840.

Regards,
Jeremy


On 30 April 2013 16:45, Jeremy Hughes <jp...@gmail.com> wrote:

> Hi John, I pulled down that the samples-1.0.0-source-release.zip and used
> a clean local maven repo. All built fine with Java 5 and 6 but not Java 7.
> Not sure why yet. Could you open a JIRA issue please?
>
> Thanks,
> Jeremy
>
>
> On 29 April 2013 22:59, John Croucher <th...@gmail.com> wrote:
>
>> Hi,
>>
>> I am trying to follow a tutorial which is using the Aries "main" sample.
>>
>> So I downloaded Aries Samples 1.0.0 (Source, ready to build) from current
>> releases but it is failing to build when I issue mvn install command.
>>
>> The last of the several errors is:
>>
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Compilation failure
>> could not parse error message: warning: [options] bootstrap class path
>> not set in conjunction with -source 1.5
>> C:\samples-1.0.0-source-release\samples-1.0.0\twitter\twitter-bundle\src\main\java\org\apache\aries\sample\twitter\TwitterQuery.java:45:
>> error: incompatible types
>>                     for (Tweet tweet : result.getTweets()) {
>>                                                        ^
>>
>> The target directory has not jar files.  I am new to this and am not sure
>> how to proceed to get a proper build.
>>
>
>

Re: Main Sample Fails To Build

Posted by Jeremy Hughes <jp...@gmail.com>.
Hi John, I pulled down that the samples-1.0.0-source-release.zip and used a
clean local maven repo. All built fine with Java 5 and 6 but not Java 7.
Not sure why yet. Could you open a JIRA issue please?

Thanks,
Jeremy


On 29 April 2013 22:59, John Croucher <th...@gmail.com> wrote:

> Hi,
>
> I am trying to follow a tutorial which is using the Aries "main" sample.
>
> So I downloaded Aries Samples 1.0.0 (Source, ready to build) from current
> releases but it is failing to build when I issue mvn install command.
>
> The last of the several errors is:
>
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> could not parse error message: warning: [options] bootstrap class path not
> set in conjunction with -source 1.5
> C:\samples-1.0.0-source-release\samples-1.0.0\twitter\twitter-bundle\src\main\java\org\apache\aries\sample\twitter\TwitterQuery.java:45:
> error: incompatible types
>                     for (Tweet tweet : result.getTweets()) {
>                                                        ^
>
> The target directory has not jar files.  I am new to this and am not sure
> how to proceed to get a proper build.
>