Home » Archived » Buckminster » How to prevent: JRE container on the classpath is not a perfect match to the 'J2SE-1.5'
|
Re: How to prevent: JRE container on the classpath is not a perfect match to the 'J2SE-1.5' [message #514874 is a reply to message #514858] |
Tue, 16 February 2010 23:27 |
|
On 02/16/2010 10:51 PM, Martin Taal wrote:
> Hi,
> I run the build on hudson on build.eclipse.org. I see these warnings:
> [java] Warning: file
> /opt/users/hudsonbuild/.hudson/jobs/emf-teneo-nightly/worksp ace/build/build/workspace/plugins/org.eclipse.emf.teneo.anno tations/META-INF/MANIFEST.MF,
> line 9: The JRE container on the classpath is not a perfect match to the
> 'J2SE-1.5' execution environment
>
> In the configuration of the build I have set java 5.0 jdk. I have a
> feeling that it has something to do with the setting in the workspace.
> What did you do with the buckminster build to solve/prevent this?
>
We install the needed JRE in our workspace prior to building. In the ant build.xml that drives our build, you'll find this:
<buckminster command="installJRE">
<cmdargs>
<arg value="--location" />
<arg value="${jdk1.4.dir}" />
</cmdargs>
</buckminster>
The ${jdk1.4.dir} is the absolute path of the JRE. You can install any number of JRE's this way.
Regards,
Thomas Hallgren
|
|
|
Re: How to prevent: JRE container on the classpath is not a perfect match to the 'J2SE-1.5' [message #515021 is a reply to message #514874] |
Wed, 17 February 2010 13:36 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Thomas,
I am still getting this exception. I have this in the log (when running in debug mode):
[echo] Using workspace /opt/users/hudsonbuild/.hudson/jobs/emf-teneo-nightly/worksp ace/build/build/workspace
[echo] Setting jre to /shared/common/ibm-java2-ppc-50
[java] installJRE '-P' '/tmp/build-709667201.properties' '--location' '/shared/common/ibm-java2-ppc-50'
[java] Downloading file:/tmp/build-709667201.properties
[java] Doing full workspace refresh
[java] Waiting for jobs to end
This is part of the build script:
<echo message="Setting jre to ${env.JAVA_HOME}"/>
<buckminster command="installJRE" workspace="${workspacePath}">
<cmdargs>
<arg value="--location" />
<arg value="${env.JAVA_HOME}" />
</cmdargs>
</buckminster>
I do this before setting the target path, is that correct?
Does the 'doing full workspace refresh' have any influence on this?
See here for the complete log:
https://build.eclipse.org/hudson/job/emf-teneo-nightly/76/co nsoleFull
gr. Martin
Thomas Hallgren wrote:
> On 02/16/2010 10:51 PM, Martin Taal wrote:
>> Hi,
>> I run the build on hudson on build.eclipse.org. I see these warnings:
>> [java] Warning: file
>> /opt/users/hudsonbuild/.hudson/jobs/emf-teneo-nightly/worksp ace/build/build/workspace/plugins/org.eclipse.emf.teneo.anno tations/META-INF/MANIFEST.MF,
>>
>> line 9: The JRE container on the classpath is not a perfect match to the
>> 'J2SE-1.5' execution environment
>>
>> In the configuration of the build I have set java 5.0 jdk. I have a
>> feeling that it has something to do with the setting in the workspace.
>> What did you do with the buckminster build to solve/prevent this?
>>
> We install the needed JRE in our workspace prior to building. In the ant
> build.xml that drives our build, you'll find this:
>
> <buckminster command="installJRE">
> <cmdargs>
> <arg value="--location" />
> <arg value="${jdk1.4.dir}" />
> </cmdargs>
> </buckminster>
>
> The ${jdk1.4.dir} is the absolute path of the JRE. You can install any
> number of JRE's this way.
>
> Regards,
> Thomas Hallgren
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: How to prevent: JRE container on the classpath is not a perfect match to the 'J2SE-1.5' [message #515022 is a reply to message #515021] |
Wed, 17 February 2010 13:37 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
To be more precise in my wording :-), it is not an exception but a warning ofcourse.
gr. Martin
Martin Taal wrote:
> Hi Thomas,
>
> I am still getting this exception. I have this in the log (when running
> in debug mode):
> [echo] Using workspace
> /opt/users/hudsonbuild/.hudson/jobs/emf-teneo-nightly/worksp ace/build/build/workspace
>
> [echo] Setting jre to /shared/common/ibm-java2-ppc-50
> [java] installJRE '-P' '/tmp/build-709667201.properties'
> '--location' '/shared/common/ibm-java2-ppc-50'
> [java] Downloading file:/tmp/build-709667201.properties
> [java] Doing full workspace refresh
> [java] Waiting for jobs to end
>
> This is part of the build script:
>
> <echo message="Setting jre to ${env.JAVA_HOME}"/>
> <buckminster command="installJRE" workspace="${workspacePath}">
> <cmdargs>
> <arg value="--location" />
> <arg value="${env.JAVA_HOME}" />
> </cmdargs>
> </buckminster>
>
> I do this before setting the target path, is that correct?
> Does the 'doing full workspace refresh' have any influence on this?
>
> See here for the complete log:
> https://build.eclipse.org/hudson/job/emf-teneo-nightly/76/co nsoleFull
>
> gr. Martin
>
> Thomas Hallgren wrote:
>> On 02/16/2010 10:51 PM, Martin Taal wrote:
>>> Hi,
>>> I run the build on hudson on build.eclipse.org. I see these warnings:
>>> [java] Warning: file
>>> /opt/users/hudsonbuild/.hudson/jobs/emf-teneo-nightly/worksp ace/build/build/workspace/plugins/org.eclipse.emf.teneo.anno tations/META-INF/MANIFEST.MF,
>>>
>>> line 9: The JRE container on the classpath is not a perfect match to the
>>> 'J2SE-1.5' execution environment
>>>
>>> In the configuration of the build I have set java 5.0 jdk. I have a
>>> feeling that it has something to do with the setting in the workspace.
>>> What did you do with the buckminster build to solve/prevent this?
>>>
>> We install the needed JRE in our workspace prior to building. In the
>> ant build.xml that drives our build, you'll find this:
>>
>> <buckminster command="installJRE">
>> <cmdargs>
>> <arg value="--location" />
>> <arg value="${jdk1.4.dir}" />
>> </cmdargs>
>> </buckminster>
>>
>> The ${jdk1.4.dir} is the absolute path of the JRE. You can install any
>> number of JRE's this way.
>>
>> Regards,
>> Thomas Hallgren
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: How to prevent: JRE container on the classpath is not a perfect match to the 'J2SE-1.5' [message #515085 is a reply to message #515021] |
Wed, 17 February 2010 16:40 |
|
Hi Martin,
Perhaps you need to update the classpath for the project in question (the button just below where you add EE's in the
PDE manifest editor).
The "doing full workspace refresh" is not related. It's just an information that Buckminster ensures that your workspace
is in sync with the file system prior to exit.
- thomas
On 02/17/2010 02:36 PM, Martin Taal wrote:
> Hi Thomas,
>
> I am still getting this exception. I have this in the log (when running
> in debug mode):
> [echo] Using workspace
> /opt/users/hudsonbuild/.hudson/jobs/emf-teneo-nightly/worksp ace/build/build/workspace
>
> [echo] Setting jre to /shared/common/ibm-java2-ppc-50
> [java] installJRE '-P' '/tmp/build-709667201.properties' '--location'
> '/shared/common/ibm-java2-ppc-50'
> [java] Downloading file:/tmp/build-709667201.properties
> [java] Doing full workspace refresh
> [java] Waiting for jobs to end
>
> This is part of the build script:
>
> <echo message="Setting jre to ${env.JAVA_HOME}"/>
> <buckminster command="installJRE" workspace="${workspacePath}">
> <cmdargs>
> <arg value="--location" />
> <arg value="${env.JAVA_HOME}" />
> </cmdargs>
> </buckminster>
>
> I do this before setting the target path, is that correct?
> Does the 'doing full workspace refresh' have any influence on this?
>
> See here for the complete log:
> https://build.eclipse.org/hudson/job/emf-teneo-nightly/76/co nsoleFull
>
> gr. Martin
>
> Thomas Hallgren wrote:
>> On 02/16/2010 10:51 PM, Martin Taal wrote:
>>> Hi,
>>> I run the build on hudson on build.eclipse.org. I see these warnings:
>>> [java] Warning: file
>>> /opt/users/hudsonbuild/.hudson/jobs/emf-teneo-nightly/worksp ace/build/build/workspace/plugins/org.eclipse.emf.teneo.anno tations/META-INF/MANIFEST.MF,
>>>
>>> line 9: The JRE container on the classpath is not a perfect match to the
>>> 'J2SE-1.5' execution environment
>>>
>>> In the configuration of the build I have set java 5.0 jdk. I have a
>>> feeling that it has something to do with the setting in the workspace.
>>> What did you do with the buckminster build to solve/prevent this?
>>>
>> We install the needed JRE in our workspace prior to building. In the
>> ant build.xml that drives our build, you'll find this:
>>
>> <buckminster command="installJRE">
>> <cmdargs>
>> <arg value="--location" />
>> <arg value="${jdk1.4.dir}" />
>> </cmdargs>
>> </buckminster>
>>
>> The ${jdk1.4.dir} is the absolute path of the JRE. You can install any
>> number of JRE's this way.
>>
>> Regards,
>> Thomas Hallgren
>
>
|
|
|
Re: How to prevent: JRE container on the classpath is not a perfect match to the 'J2SE-1.5' [message #515145 is a reply to message #515085] |
Wed, 17 February 2010 21:24 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Thanks Thomas, this indeed solved it!
gr. Martin
Thomas Hallgren wrote:
> Hi Martin,
> Perhaps you need to update the classpath for the project in question
> (the button just below where you add EE's in the PDE manifest editor).
>
> The "doing full workspace refresh" is not related. It's just an
> information that Buckminster ensures that your workspace is in sync with
> the file system prior to exit.
>
> - thomas
>
> On 02/17/2010 02:36 PM, Martin Taal wrote:
>> Hi Thomas,
>>
>> I am still getting this exception. I have this in the log (when running
>> in debug mode):
>> [echo] Using workspace
>> /opt/users/hudsonbuild/.hudson/jobs/emf-teneo-nightly/worksp ace/build/build/workspace
>>
>>
>> [echo] Setting jre to /shared/common/ibm-java2-ppc-50
>> [java] installJRE '-P' '/tmp/build-709667201.properties' '--location'
>> '/shared/common/ibm-java2-ppc-50'
>> [java] Downloading file:/tmp/build-709667201.properties
>> [java] Doing full workspace refresh
>> [java] Waiting for jobs to end
>>
>> This is part of the build script:
>>
>> <echo message="Setting jre to ${env.JAVA_HOME}"/>
>> <buckminster command="installJRE" workspace="${workspacePath}">
>> <cmdargs>
>> <arg value="--location" />
>> <arg value="${env.JAVA_HOME}" />
>> </cmdargs>
>> </buckminster>
>>
>> I do this before setting the target path, is that correct?
>> Does the 'doing full workspace refresh' have any influence on this?
>>
>> See here for the complete log:
>> https://build.eclipse.org/hudson/job/emf-teneo-nightly/76/co nsoleFull
>>
>> gr. Martin
>>
>> Thomas Hallgren wrote:
>>> On 02/16/2010 10:51 PM, Martin Taal wrote:
>>>> Hi,
>>>> I run the build on hudson on build.eclipse.org. I see these warnings:
>>>> [java] Warning: file
>>>> /opt/users/hudsonbuild/.hudson/jobs/emf-teneo-nightly/worksp ace/build/build/workspace/plugins/org.eclipse.emf.teneo.anno tations/META-INF/MANIFEST.MF,
>>>>
>>>>
>>>> line 9: The JRE container on the classpath is not a perfect match to
>>>> the
>>>> 'J2SE-1.5' execution environment
>>>>
>>>> In the configuration of the build I have set java 5.0 jdk. I have a
>>>> feeling that it has something to do with the setting in the workspace.
>>>> What did you do with the buckminster build to solve/prevent this?
>>>>
>>> We install the needed JRE in our workspace prior to building. In the
>>> ant build.xml that drives our build, you'll find this:
>>>
>>> <buckminster command="installJRE">
>>> <cmdargs>
>>> <arg value="--location" />
>>> <arg value="${jdk1.4.dir}" />
>>> </cmdargs>
>>> </buckminster>
>>>
>>> The ${jdk1.4.dir} is the absolute path of the JRE. You can install any
>>> number of JRE's this way.
>>>
>>> Regards,
>>> Thomas Hallgren
>>
>>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Goto Forum:
Current Time: Sun Apr 28 02:17:14 GMT 2024
Powered by FUDForum. Page generated in 0.03792 seconds
|